Merge pull request #5094 from kellycampbe/ConnectToServerFix

Fixes connect to server not working when a password is used for the UI.
This commit is contained in:
Kenneth Skovhede
2024-03-04 13:34:59 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
@@ -53,7 +53,6 @@ backupApp.service('AppService', function($http, $cookies, $q, $cookies, DialogSe
DialogService.accept('Not logged in', function () {
window.location = appConfig.login_url;
});
return;
}
deferred.reject(response);
});
@@ -275,6 +275,9 @@ backupApp.service('ServerStatus', function($rootScope, $timeout, AppService, App
// Try again
longpoll(true);
} else if (response.status == 401) {
// Change state to connected to hide the connecting message, which is on top of the login message from the AppService
state.connectionState = 'connected';
} else {
state.connectionState = 'disconnected';