1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Add a 'welcome' panel to the control panel and make it the default page instead of the status checks which take too long to load

Fixes #2014
This commit is contained in:
Joshua Tauberer
2021-08-22 16:38:49 -04:00
parent e884c4774f
commit 26932ecb10
3 changed files with 23 additions and 1 deletions

View File

@@ -118,6 +118,10 @@
</div>
<div class="container">
<div id="panel_welcome" class="admin_panel">
{% include "welcome.html" %}
</div>
<div id="panel_system_status" class="admin_panel">
{% include "system-status.html" %}
</div>
@@ -409,6 +413,8 @@ $(function() {
// Recall what the user was last looking at.
if (typeof localStorage != 'undefined' && localStorage.getItem("miab-cp-lastpanel")) {
show_panel(localStorage.getItem("miab-cp-lastpanel"));
} else if (api_credentials[0] != "") {
show_panel('welcome');
} else {
show_panel('login');
}