diff --git a/dev/Styles/Admin.less b/dev/Styles/Admin.less index 7bdc56de5..7eae4dbbf 100644 --- a/dev/Styles/Admin.less +++ b/dev/Styles/Admin.less @@ -76,9 +76,15 @@ right: 0; left: 0; height: 34px; - padding: 8px @rlLowMargin; + padding: 8px @rlLowMargin 8px 0; color: #fff; text-shadow: 0 1px 1px #000; + + display: flex; + + h4 { + flex-grow: 1; + } } .b-content { diff --git a/dev/View/Admin/Settings/Pane.js b/dev/View/Admin/Settings/Pane.js index bc8454a16..361eb97a8 100644 --- a/dev/View/Admin/Settings/Pane.js +++ b/dev/View/Admin/Settings/Pane.js @@ -8,27 +8,35 @@ import PackageStore from 'Stores/Admin/Package'; import { AbstractViewRight } from 'Knoin/AbstractViews'; +import { leftPanelDisabled } from 'Common/Globals'; + class PaneSettingsAdminView extends AbstractViewRight { constructor() { super('Admin/Settings/Pane', 'AdminPane'); this.version = ko.observable(rl.settings.app('version')); - this.adminManLoading = ko.computed( - () => - '000' !== - [ - DomainStore.domains.loading() ? '1' : '0', - PluginStore.plugins.loading() ? '1' : '0', - PackageStore.packages.loading() ? '1' : '0' - ].join('') - ); + this.leftPanelDisabled = leftPanelDisabled; this.adminManLoadingVisibility = ko - .computed(() => (this.adminManLoading() ? 'visible' : 'hidden')) + .computed(() => (DomainStore.domains.loading() + || PluginStore.plugins.loading() + || PackageStore.packages.loading()) ? 'visible' : 'hidden') .extend({ rateLimit: 300 }); } + hideLeft(item, event) { + event.preventDefault(); + event.stopPropagation(); + leftPanelDisabled(true); + } + + showLeft(item, event) { + event.preventDefault(); + event.stopPropagation(); + leftPanelDisabled(false); + } + logoutClick() { Remote.adminLogout(() => rl.logoutReload()); } diff --git a/snappymail/v/0.0.0/app/templates/Views/Admin/AdminPane.html b/snappymail/v/0.0.0/app/templates/Views/Admin/AdminPane.html index 87532a786..171818c75 100644 --- a/snappymail/v/0.0.0/app/templates/Views/Admin/AdminPane.html +++ b/snappymail/v/0.0.0/app/templates/Views/Admin/AdminPane.html @@ -1,19 +1,14 @@