Changed the way how DNS-server start error is handled. Now ALFIS starts normally, and the error is shown in GUI.
This commit is contained in:
@@ -450,6 +450,11 @@
|
||||
<p id="warning_text"></p>
|
||||
</div>
|
||||
|
||||
<div class="notification mini is-danger is-hidden" id="notification_error">
|
||||
<button class="delete" id="error_close"></button>
|
||||
<p id="error_text"></p>
|
||||
</div>
|
||||
|
||||
<div class="notification mini is-success is-hidden" id="notification_success">
|
||||
<button class="delete" id="success_close"></button>
|
||||
<p id="success_text"></p>
|
||||
|
||||
@@ -472,6 +472,19 @@ function showWarning(text) {
|
||||
setTimeout(button.onclick, 5000);
|
||||
}
|
||||
|
||||
function showError(text) {
|
||||
var warning = document.getElementById("notification_error");
|
||||
var message = document.getElementById("error_text");
|
||||
message.innerHTML = text;
|
||||
|
||||
warning.className = "notification mini is-danger";
|
||||
var button = document.getElementById("error_close");
|
||||
button.onclick = function() {
|
||||
message.value = "";
|
||||
warning.className = "notification mini is-danger is-hidden";
|
||||
}
|
||||
}
|
||||
|
||||
function showSuccess(text) {
|
||||
var warning = document.getElementById("notification_success");
|
||||
var message = document.getElementById("success_text");
|
||||
|
||||
@@ -100,6 +100,12 @@ body {
|
||||
right: 10pt;
|
||||
}
|
||||
|
||||
.notification.mini.is-danger {
|
||||
position: absolute;
|
||||
bottom: 30pt;
|
||||
right: 10pt;
|
||||
}
|
||||
|
||||
.notification.mini.is-success {
|
||||
position: absolute;
|
||||
bottom: 30pt;
|
||||
|
||||
Reference in New Issue
Block a user