mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Move hideLoading into AbstractApp
This commit is contained in:
parent
467f615713
commit
28fb9a4cbd
4 changed files with 15 additions and 14 deletions
|
|
@ -9,7 +9,6 @@ let currentScreen = null,
|
|||
popupVisibilityNames = [];
|
||||
|
||||
const SCREENS = {},
|
||||
qs = s => document.querySelector(s),
|
||||
isNonEmptyArray = Array.isNotEmpty,
|
||||
autofocus = dom => {
|
||||
// if (!bMobileDevice) {
|
||||
|
|
@ -26,14 +25,6 @@ export const ViewType = {
|
|||
Center: 'Center'
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns {void}
|
||||
*/
|
||||
export function hideLoading() {
|
||||
qs('#rl-content').hidden = false;
|
||||
qs('#rl-loading').remove();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Function} fExecute
|
||||
* @param {(Function|boolean|null)=} fCanExecute = true
|
||||
|
|
@ -125,7 +116,7 @@ function buildViewModel(ViewModelClass, vmScreen) {
|
|||
let vmDom = null;
|
||||
const vm = new ViewModelClass(vmScreen),
|
||||
position = ViewModelClass.__type || '',
|
||||
vmPlace = position ? qs('#rl-content #rl-' + position.toLowerCase()) : null;
|
||||
vmPlace = position ? document.querySelector('#rl-content #rl-' + position.toLowerCase()) : null;
|
||||
|
||||
ViewModelClass.__builded = true;
|
||||
ViewModelClass.__vm = vm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue