Merge pull request #434 from hamid-gh98/main

[FIX] siderDrawer button functionality + [Update] redirect restart panel
This commit is contained in:
Ho3ein 2023-05-14 10:49:30 +03:30 committed by GitHub
commit 5487dc41cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 1 deletions

View file

@ -28,6 +28,12 @@ body {
display: none; display: none;
} }
@media (max-width: 768px) {
.ant-layout-sider {
display: none;
}
}
.ant-card { .ant-card {
border-radius: 1.5rem; border-radius: 1.5rem;
} }

View file

@ -317,6 +317,7 @@
delimiters: ['[[', ']]'], delimiters: ['[[', ']]'],
el: '#app', el: '#app',
data: { data: {
siderDrawer,
themeSwitcher, themeSwitcher,
spinning: false, spinning: false,
inbounds: [], inbounds: [],

View file

@ -388,6 +388,7 @@
delimiters: ['[[', ']]'], delimiters: ['[[', ']]'],
el: '#app', el: '#app',
data: { data: {
siderDrawer,
themeSwitcher, themeSwitcher,
status: new Status(), status: new Status(),
versionModal, versionModal,

View file

@ -241,6 +241,7 @@
delimiters: ['[[', ']]'], delimiters: ['[[', ']]'],
el: '#app', el: '#app',
data: { data: {
siderDrawer,
themeSwitcher, themeSwitcher,
spinning: false, spinning: false,
oldAllSetting: new AllSetting(), oldAllSetting: new AllSetting(),
@ -357,7 +358,7 @@
if (msg.success) { if (msg.success) {
this.loading(true); this.loading(true);
await PromiseUtil.sleep(5000); await PromiseUtil.sleep(5000);
location.reload(); window.location.replace(this.allSetting.webBasePath + "panel/settings");
} }
}, },
async getUserSecret() { async getUserSecret() {