mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Change Admin Panel "Attachment Settings" and "Cron Settings" options to be tabs, not submenu. Part 3.
Thanks to xet7 !
This commit is contained in:
parent
6a7a5505f9
commit
2148aeea42
2 changed files with 60 additions and 11 deletions
|
|
@ -4,15 +4,31 @@ import { TAPi18n } from '/imports/i18n';
|
|||
// Template helpers for attachmentSettings
|
||||
Template.attachmentSettings.helpers({
|
||||
loading() {
|
||||
const instance = Template.instance();
|
||||
if (instance && instance.loading) {
|
||||
return instance.loading.get();
|
||||
}
|
||||
return attachmentSettings.loading.get();
|
||||
},
|
||||
showStorageSettings() {
|
||||
const instance = Template.instance();
|
||||
if (instance && instance.showStorageSettings) {
|
||||
return instance.showStorageSettings.get();
|
||||
}
|
||||
return attachmentSettings.showStorageSettings.get();
|
||||
},
|
||||
showMigration() {
|
||||
const instance = Template.instance();
|
||||
if (instance && instance.showMigration) {
|
||||
return instance.showMigration.get();
|
||||
}
|
||||
return attachmentSettings.showMigration.get();
|
||||
},
|
||||
showMonitoring() {
|
||||
const instance = Template.instance();
|
||||
if (instance && instance.showMonitoring) {
|
||||
return instance.showMonitoring.get();
|
||||
}
|
||||
return attachmentSettings.showMonitoring.get();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue