Keep Activation box visible

change-spawn-to-worker-for-monitor-daemon
Moe 2021-07-11 11:03:22 -07:00
parent db6b7d6545
commit 79f60848a4
2 changed files with 5 additions and 6 deletions

View File

@ -1,10 +1,10 @@
<form id="hey-activate" class="card shadow mb-3">
<div class="card-header">
<%- lang['Not Activated'] %>
<%- config.hasSubcribed ? lang['Activated'] : lang['Not Activated'] %>
</div>
<div class="card-body" style="min-height:auto">
<div class="form-group">
<input name="subscriptionId" id="pass" tabindex="2" class="form-control wide-text" placeholder="License Key / Subscription ID">
<input name="subscriptionId" tabindex="2" class="form-control wide-text" placeholder="License Key / Subscription ID">
</div>
<div class="form-group mb-0">
<button class="btn btn-sm btn-round btn-block btn-success" type="submit"><%- lang.Save %></button>
@ -42,10 +42,11 @@
noticeTitle = lang.Activated
noticeText = lang.activatedText
noticeType = 'success'
heyActivateCard.remove()
heyActivateCard.find('[name="subscriptionId"]').val('')
}else{
heyActivateCardSubmit.html(lang.Save)
}
heyActivateCard.find('.card-header').html(noticeTitle)
new PNotify({
title: noticeTitle,
text: noticeText,

View File

@ -103,9 +103,7 @@
<div class="tab-pane active" id="accounts" role="tabpanel">
<div class="row">
<div class="col-md-5 text-left">
<% if(!config.userHasSubscribed){ %>
<% include blocks/heyActivate.ejs %>
<% } %>
<% include blocks/heyActivate.ejs %>
<div class="card shadow mb-3">
<pre class="super-system-info card-body mb-0">