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:
Revertron
2021-11-20 16:11:05 +01:00
parent ab742885dd
commit 0e8d39751e
8 changed files with 47 additions and 11 deletions
+5
View File
@@ -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>
+13
View File
@@ -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");
+6
View File
@@ -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;