Drop unused user mail templates system

This commit is contained in:
djmaze 2021-09-17 10:32:58 +02:00
parent fd28e65ed6
commit 134deb8d73
37 changed files with 0 additions and 797 deletions

View file

@ -1,28 +0,0 @@
import ko from 'ko';
// import Remote from 'Remote/User/Fetch';
export const TemplateUserStore = new class {
constructor() {
this.templates = ko.observableArray();
this.templates.loading = ko.observable(false).extend({ debounce: 100 });
this.templatesNames = ko.observableArray().extend({ debounce: 1000 });
this.templatesNames.skipFirst = true;
this.templates.subscribe((list) => {
this.templatesNames(list.map(item => (item ? item.name : null)).filter(v => v));
});
// this.templatesNames.subscribe((aList) => {
// if (this.templatesNames.skipFirst)
// {
// this.templatesNames.skipFirst = false;
// }
// else if (aList && aList.length)
// {
// Remote.templatesSortOrder(null, aList);
// }
// });
}
};