Small UI fix, added contacts button (for now disabled).

This commit is contained in:
Revertron
2021-04-27 19:05:24 +02:00
parent 5cacc30b41
commit e7c2814971
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -110,6 +110,7 @@
<button disabled id="owners_button" class="button is-info is-light" onclick="showOwnersDialog();" title="You can change domain owners. Leave empty to be yours only.">
<span>Set owners</span><span id="owners_count" class="tag is-info is-hidden ml-2">0</span>
</button>
<button disabled id="add_contacts_button" class="button is-info is-light" onclick="showContactsDialog();" title="You can add contact information to your domain, if you wish">Set contacts</button>
<button id="new_domain_button" class="button is-info" onclick="createDomain();" title="Start mining">Mine domain</button>
</div>
</div>
+4
View File
@@ -215,6 +215,10 @@ function recordOkay(okay) {
}
function createDomain() {
if (typeof currentZone == 'undefined') {
showWarning("Select a domain zone first");
return;
}
var new_domain = document.getElementById("new_domain").value.toLowerCase();
var domain = new_domain + "." + currentZone.name;
var data = {};