mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-07 21:30:48 +00:00
Expand install routine.
This commit is contained in:
16
public/js/ff/install/index.js
vendored
16
public/js/ff/install/index.js
vendored
@@ -53,17 +53,29 @@ function startPassport() {
|
||||
function startUpgrade() {
|
||||
$('#status-box').html('<i class="fa fa-spin fa-spinner"></i> Upgrading database...');
|
||||
$.post(upgradeUri, {_token: token}).done(function () {
|
||||
completeDone();
|
||||
startVerify();
|
||||
}).fail(function () {
|
||||
$('#status-box').html('<i class="fa fa-warning"></i> Upgrade failed! See log files :(');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function startVerify() {
|
||||
$('#status-box').html('<i class="fa fa-spin fa-spinner"></i> Verify database integrity...');
|
||||
$.post(verifyUri, {_token: token}).done(function () {
|
||||
completeDone();
|
||||
}).fail(function () {
|
||||
$('#status-box').html('<i class="fa fa-warning"></i> Verification failed! See log files :(');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function completeDone() {
|
||||
$('#status-box').html('<i class="fa fa-thumbs-up"></i> Installation complete! Wait to be redirected...');
|
||||
$('#status-box').html('<i class="fa fa-thumbs-up"></i> Installation + upgrade complete! Wait to be redirected...');
|
||||
setTimeout(function () {
|
||||
window.location = homeUri;
|
||||
}, 3000);
|
||||
|
Reference in New Issue
Block a user