Small UI fix, added contacts button (for now disabled).
This commit is contained in:
@@ -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.">
|
<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>
|
<span>Set owners</span><span id="owners_count" class="tag is-info is-hidden ml-2">0</span>
|
||||||
</button>
|
</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>
|
<button id="new_domain_button" class="button is-info" onclick="createDomain();" title="Start mining">Mine domain</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -215,6 +215,10 @@ function recordOkay(okay) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createDomain() {
|
function createDomain() {
|
||||||
|
if (typeof currentZone == 'undefined') {
|
||||||
|
showWarning("Select a domain zone first");
|
||||||
|
return;
|
||||||
|
}
|
||||||
var new_domain = document.getElementById("new_domain").value.toLowerCase();
|
var new_domain = document.getElementById("new_domain").value.toLowerCase();
|
||||||
var domain = new_domain + "." + currentZone.name;
|
var domain = new_domain + "." + currentZone.name;
|
||||||
var data = {};
|
var data = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user