mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix webbased upgrade routine.
This commit is contained in:
16
public/v1/js/ff/install/index.js
vendored
16
public/v1/js/ff/install/index.js
vendored
@@ -30,6 +30,22 @@ function startMigration() {
|
||||
$('#status-box').html('<i class="fa fa-spin fa-spinner"></i> Setting up DB...');
|
||||
$.post(migrateUri, {_token: token}).done(function (data) {
|
||||
if(data.error === false) {
|
||||
// move to decrypt routine.
|
||||
startDecryption();
|
||||
} else {
|
||||
displaySoftFail(data.message);
|
||||
}
|
||||
|
||||
}).fail(function () {
|
||||
$('#status-box').html('<i class="fa fa-warning"></i> Migration failed! See log files :(');
|
||||
});
|
||||
}
|
||||
|
||||
function startDecryption() {
|
||||
$('#status-box').html('<i class="fa fa-spin fa-spinner"></i> Setting up DB #2...');
|
||||
$.post(decryptUri, {_token: token}).done(function (data) {
|
||||
if(data.error === false) {
|
||||
// move to decrypt routine.
|
||||
startPassport();
|
||||
} else {
|
||||
displaySoftFail(data.message);
|
||||
|
Reference in New Issue
Block a user