mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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, {
|
addObservablesTo(AppUserStore, {
|
||||||
currentAudio: '',
|
|
||||||
|
|
||||||
focusedState: Scope.None,
|
focusedState: Scope.None,
|
||||||
|
|
||||||
threadsAllowed: false,
|
threadsAllowed: false,
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,6 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
||||||
this.allowSettings = Settings.capa(Capa.Settings);
|
this.allowSettings = Settings.capa(Capa.Settings);
|
||||||
this.allowHelp = Settings.capa(Capa.Help);
|
this.allowHelp = Settings.capa(Capa.Help);
|
||||||
|
|
||||||
this.currentAudio = AppUserStore.currentAudio;
|
|
||||||
|
|
||||||
this.accountEmail = AccountUserStore.email;
|
this.accountEmail = AccountUserStore.email;
|
||||||
|
|
||||||
this.accounts = AccountUserStore.accounts;
|
this.accounts = AccountUserStore.accounts;
|
||||||
|
|
@ -32,6 +30,7 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
||||||
this.accountsUnreadCount = AccountUserStore.accountsUnreadCount;
|
this.accountsUnreadCount = AccountUserStore.accountsUnreadCount;
|
||||||
|
|
||||||
this.addObservables({
|
this.addObservables({
|
||||||
|
currentAudio: '',
|
||||||
accountMenuDropdownTrigger: false,
|
accountMenuDropdownTrigger: false,
|
||||||
capaAdditionalAccounts: Settings.capa(Capa.AdditionalAccounts)
|
capaAdditionalAccounts: Settings.capa(Capa.AdditionalAccounts)
|
||||||
});
|
});
|
||||||
|
|
@ -40,8 +39,8 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
||||||
|
|
||||||
this.addAccountClick = this.addAccountClick.bind(this);
|
this.addAccountClick = this.addAccountClick.bind(this);
|
||||||
|
|
||||||
addEventListener('audio.stop', () => AppUserStore.currentAudio(''));
|
addEventListener('audio.stop', () => this.currentAudio(''));
|
||||||
addEventListener('audio.start', e => AppUserStore.currentAudio(e.detail));
|
addEventListener('audio.start', e => this.currentAudio(e.detail));
|
||||||
}
|
}
|
||||||
|
|
||||||
stopPlay() {
|
stopPlay() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue