this.addObservables() to addObservablesTo()

This commit is contained in:
the-djmaze 2022-10-30 22:19:52 +01:00
parent 839ebfb350
commit 7fac6ca9dd
30 changed files with 78 additions and 58 deletions

View file

@ -20,6 +20,7 @@ import Remote from 'Remote/User/Fetch';
import { getNotification } from 'Common/Translator';
//import { clearCache } from 'Common/Cache';
//import { koComputable } from 'External/ko';
import { addObservablesTo } from 'External/ko';
export class SystemDropDownUserView extends AbstractViewRight {
constructor() {
@ -36,7 +37,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
this.accountsUnreadCount = : koComputable(() => AccountUserStore.accounts().reduce((result, item) => result + item.count(), 0));
*/
this.addObservables({
addObservablesTo(this, {
currentAudio: '',
accountMenuDropdownTrigger: false
});