From 6c9a3b530d415aee076a1dd0f44e7d1925bc5150 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 5 Aug 2018 23:30:22 -0700 Subject: [PATCH] Display restore error on page load --- src/js/restore.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/restore.js b/src/js/restore.js index a78a6d5a2..c6ee1b473 100644 --- a/src/js/restore.js +++ b/src/js/restore.js @@ -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;