mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
this.addObservables() to addObservablesTo()
This commit is contained in:
parent
839ebfb350
commit
7fac6ca9dd
30 changed files with 78 additions and 58 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { addObservablesTo, addComputablesTo } from 'External/ko';
|
||||
import { i18n, getNotification } from 'Common/Translator';
|
||||
|
||||
import { MessageUserStore } from 'Stores/User/Message';
|
||||
|
|
@ -12,12 +13,12 @@ export class FolderClearPopupView extends AbstractViewPopup {
|
|||
constructor() {
|
||||
super('FolderClear');
|
||||
|
||||
this.addObservables({
|
||||
addObservablesTo(this, {
|
||||
folder: null,
|
||||
clearing: false
|
||||
});
|
||||
|
||||
this.addComputables({
|
||||
addComputablesTo(this, {
|
||||
dangerDescHtml: () => {
|
||||
// const folder = this.folder();
|
||||
// return i18n('POPUPS_CLEAR_FOLDER/DANGER_DESC_HTML_1', { FOLDER: folder.fullName.replace(folder.delimiter, ' / ') });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue