Display restore error on page load

This commit is contained in:
Girish Ramakrishnan
2018-08-05 23:30:22 -07:00
parent 2f2c70d1df
commit 6c9a3b530d

View File

@@ -234,6 +234,8 @@ app.controller('RestoreController', ['$scope', '$http', 'Client', function ($sco
if (status.webadminStatus.restore.active) return waitForRestore();
if (status.webadminStatus.restore.error) $scope.error.generic = status.webadminStatus.restore.error;
if (status.activated) {
window.location.href = '/';
return;