mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
es5 -> es2015 (last stage)
Signature plugin fixes Add view decorator A large number of fixes
This commit is contained in:
parent
e88c193334
commit
17669b7be0
153 changed files with 21193 additions and 21115 deletions
|
|
@ -3,11 +3,13 @@ import ko from 'ko';
|
|||
|
||||
import {i18n} from 'Common/Translator';
|
||||
|
||||
import {showScreenPopup} from 'Knoin/Knoin';
|
||||
|
||||
import TemplateStore from 'Stores/User/Template';
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
|
||||
import {getApp} from 'Helper/Apps/User';
|
||||
|
||||
import {showScreenPopup} from 'Knoin/Knoin';
|
||||
|
||||
class TemplatesUserSettings
|
||||
{
|
||||
constructor() {
|
||||
|
|
@ -55,19 +57,16 @@ class TemplatesUserSettings
|
|||
}
|
||||
|
||||
reloadTemplates() {
|
||||
this.getApp().templates();
|
||||
}
|
||||
|
||||
getApp() {
|
||||
return require('App/User').default;
|
||||
getApp().templates();
|
||||
}
|
||||
|
||||
onBuild(oDom) {
|
||||
var self = this;
|
||||
|
||||
const self = this;
|
||||
|
||||
oDom
|
||||
.on('click', '.templates-list .template-item .e-action', function() {
|
||||
const template = ko.dataFor(this);
|
||||
.on('click', '.templates-list .template-item .e-action', function() { // eslint-disable-line prefer-arrow-callback
|
||||
const template = ko.dataFor(this); // eslint-disable-line no-invalid-this
|
||||
if (template)
|
||||
{
|
||||
self.editTemplate(template);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue