mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Reload the page after postinstall anyway
This commit is contained in:
parent
350fac92cf
commit
c03423a6ff
1 changed files with 9 additions and 15 deletions
14
js/app.js
14
js/app.js
|
@ -213,16 +213,10 @@ app = Sammy('#main', function (sam) {
|
|||
} else {
|
||||
if (uri === '/postinstall') {
|
||||
if (installing) {
|
||||
interval = window.location.hostname === args.domain ? 20000 : 5000;
|
||||
checkInstall = setInterval(function () {
|
||||
c.checkInstall(function(isInstalled) {
|
||||
if (isInstalled || (window.location.hostname === args.domain && typeof isInstalled === 'undefined')) {
|
||||
c.flash('success', y18n.t('installation_complete'));
|
||||
clearInterval(checkInstall);
|
||||
window.location.href = 'https://'+ window.location.hostname +'/yunohost/admin/';
|
||||
}
|
||||
});
|
||||
}, interval);
|
||||
setTimeout(function () {
|
||||
c.flash('success', y18n.t('installation_complete'));
|
||||
window.location.href = 'https://'+ window.location.hostname +'/yunohost/admin/';
|
||||
}, 10000);
|
||||
} else {
|
||||
c.flash('fail', y18n.t('error_occured'));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue