mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
Replace some data-bind="click: function(){} with object functions to prevent eval()
This commit is contained in:
parent
95808ba377
commit
0d6499702d
17 changed files with 53 additions and 16 deletions
|
|
@ -151,6 +151,10 @@ export class UserSettingsFolders /*extends AbstractViewSettings*/ {
|
|||
}
|
||||
}
|
||||
|
||||
hideError() {
|
||||
this.folderListError('');
|
||||
}
|
||||
|
||||
toggleFolderKolabType(folder, event) {
|
||||
let type = event.target.value;
|
||||
// TODO: append '.default' ?
|
||||
|
|
|
|||
|
|
@ -60,6 +60,10 @@ export class UserSettingsThemes /*extends AbstractViewSettings*/ {
|
|||
});
|
||||
}
|
||||
|
||||
setTheme(theme) {
|
||||
ThemeStore.theme(theme.name);
|
||||
}
|
||||
|
||||
onBuild() {
|
||||
const currentTheme = ThemeStore.theme();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue