mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 02:40:14 +01:00
Fixed Error in migrate-lists-to-per-swimlane migration.
Thanks to xet7 ! Fixes #5918
This commit is contained in:
parent
9bd21e1d1b
commit
cc99da5357
9 changed files with 157 additions and 135 deletions
|
|
@ -1,37 +1,6 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
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();
|
||||
}
|
||||
});
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Session } from 'meteor/session';
|
||||
import { Tracker } from 'meteor/tracker';
|
||||
|
|
@ -102,6 +71,20 @@ BlazeComponent.extendComponent({
|
|||
this.loadMonitoringData();
|
||||
},
|
||||
|
||||
// Template helpers for this component
|
||||
loading() {
|
||||
return this.loading.get();
|
||||
},
|
||||
showStorageSettings() {
|
||||
return this.showStorageSettings.get();
|
||||
},
|
||||
showMigration() {
|
||||
return this.showMigration.get();
|
||||
},
|
||||
showMonitoring() {
|
||||
return this.showMonitoring.get();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [
|
||||
{
|
||||
|
|
@ -497,5 +480,25 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
}).register('attachmentMonitoring');
|
||||
|
||||
// Template helpers for attachmentSettings
|
||||
Template.attachmentSettings.helpers({
|
||||
loading() {
|
||||
const instance = Template.instance();
|
||||
return instance.loading && instance.loading.get();
|
||||
},
|
||||
showStorageSettings() {
|
||||
const instance = Template.instance();
|
||||
return instance.showStorageSettings && instance.showStorageSettings.get();
|
||||
},
|
||||
showMigration() {
|
||||
const instance = Template.instance();
|
||||
return instance.showMigration && instance.showMigration.get();
|
||||
},
|
||||
showMonitoring() {
|
||||
const instance = Template.instance();
|
||||
return instance.showMonitoring && instance.showMonitoring.get();
|
||||
},
|
||||
});
|
||||
|
||||
// Export the attachment settings for use in other components
|
||||
export { attachmentSettings };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue