mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-01 04:22:15 +08:00
Put AppUserStore.currentAudio in AbstractSystemDropDownUserView
This commit is contained in:
parent
676de1ed23
commit
a46c0c3b21
2 changed files with 3 additions and 6 deletions
|
@ -8,8 +8,6 @@ export const AppUserStore = {
|
|||
};
|
||||
|
||||
addObservablesTo(AppUserStore, {
|
||||
currentAudio: '',
|
||||
|
||||
focusedState: Scope.None,
|
||||
|
||||
threadsAllowed: false,
|
||||
|
|
|
@ -23,8 +23,6 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
|||
this.allowSettings = Settings.capa(Capa.Settings);
|
||||
this.allowHelp = Settings.capa(Capa.Help);
|
||||
|
||||
this.currentAudio = AppUserStore.currentAudio;
|
||||
|
||||
this.accountEmail = AccountUserStore.email;
|
||||
|
||||
this.accounts = AccountUserStore.accounts;
|
||||
|
@ -32,6 +30,7 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
|||
this.accountsUnreadCount = AccountUserStore.accountsUnreadCount;
|
||||
|
||||
this.addObservables({
|
||||
currentAudio: '',
|
||||
accountMenuDropdownTrigger: false,
|
||||
capaAdditionalAccounts: Settings.capa(Capa.AdditionalAccounts)
|
||||
});
|
||||
|
@ -40,8 +39,8 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
|||
|
||||
this.addAccountClick = this.addAccountClick.bind(this);
|
||||
|
||||
addEventListener('audio.stop', () => AppUserStore.currentAudio(''));
|
||||
addEventListener('audio.start', e => AppUserStore.currentAudio(e.detail));
|
||||
addEventListener('audio.stop', () => this.currentAudio(''));
|
||||
addEventListener('audio.start', e => this.currentAudio(e.detail));
|
||||
}
|
||||
|
||||
stopPlay() {
|
||||
|
|
Loading…
Reference in a new issue