mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Login screen readability
This commit is contained in:
parent
c837195ae4
commit
f4fe19b133
1 changed files with 12 additions and 1 deletions
13
js/app.js
13
js/app.js
|
@ -359,13 +359,24 @@ app = Sammy('#main', function (sam) {
|
||||||
$('#masthead').show();
|
$('#masthead').show();
|
||||||
$('.logout-button').hide();
|
$('.logout-button').hide();
|
||||||
store.set('path-1', '#/login');
|
store.set('path-1', '#/login');
|
||||||
|
if ($('div.loader').length == 0) {
|
||||||
|
setInterval(function () {
|
||||||
|
if (!loaded && $('div.loader').length == 0) {
|
||||||
|
$('#main').append('<div class="loader loader-content"></div>');
|
||||||
|
}
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
c.checkInstall(function(isInstalled) {
|
c.checkInstall(function(isInstalled) {
|
||||||
if (isInstalled) {
|
if (isInstalled) {
|
||||||
domain = window.location.hostname;
|
domain = window.location.hostname;
|
||||||
|
$('div.loader').remove();
|
||||||
c.view('login', { 'domain': domain });
|
c.view('login', { 'domain': domain });
|
||||||
} else if (typeof isInstalled === 'undefined') {
|
} else if (typeof isInstalled === 'undefined') {
|
||||||
setInterval(c.redirect('#/login'), 5000);
|
setTimeout(function() {
|
||||||
|
c.redirect('#/');
|
||||||
|
}, 5000);
|
||||||
} else {
|
} else {
|
||||||
|
$('div.loader').remove();
|
||||||
c.redirect('#/postinstall');
|
c.redirect('#/postinstall');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue