Less float & less html is mobile view profit

This commit is contained in:
djmaze 2021-02-08 21:19:58 +01:00
parent 004378ed8c
commit 57158bd55a
17 changed files with 71 additions and 91 deletions

View file

@ -10,6 +10,7 @@ import { AbstractViewRight } from 'Knoin/AbstractViews';
import { KeyboardShortcutsHelpPopupView } from 'View/Popup/KeyboardShortcutsHelp';
import { AccountPopupView } from 'View/Popup/Account';
import { ContactsPopupView } from 'View/Popup/Contacts';
import { Settings } from 'Common/Globals';
@ -35,6 +36,8 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
capaAdditionalAccounts: Settings.capa(Capa.AdditionalAccounts)
});
this.allowContacts = !!AppStore.contactsIsAllowed();
this.addAccountClick = this.addAccountClick.bind(this);
addEventListener('audio.stop', () => AppStore.currentAudio(''));
@ -76,6 +79,12 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
}
}
contactsClick() {
if (this.allowContacts) {
showScreenPopup(ContactsPopupView);
}
}
logoutClick() {
rl.app.logout();
}