1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-23 00:57:23 +02:00

Actual implementation of the Relay setup daemon

This commit is contained in:
David Duque
2020-04-16 22:16:02 +01:00
parent d9397a026b
commit 430f6dab38
3 changed files with 27 additions and 8 deletions

View File

@@ -341,7 +341,7 @@
return output;
}
function default_error(text, xhr) {
function default_error(_, xhr) {
if (xhr.status != 403) // else handled below
show_modal_error("Error", "Something went wrong, sorry.")
}
@@ -371,7 +371,8 @@
// Credentials are no longer valid. Try to login again.
var p = current_panel;
show_panel('login');
switch_back_to_panel = p;
// No use of going back
switch_back_to_panel = current_panel;
}
}
})

View File

@@ -129,6 +129,11 @@
show_modal_error("Done!", "The configuration has been updated and Postfix was restarted successfully. Please make sure everything is functioning as intended.", () => {
return false
})
},
(text, xhr) => {
if (xhr.status != 403) {
show_modal_error("Error", `<h5>${xhr}</h5><br><pre>${text}</pre><br>Welp, oof`)
}
}
)
}