diff --git a/dashboard/public/js/client.js b/dashboard/public/js/client.js index 0a67213ce..ef258710a 100644 --- a/dashboard/public/js/client.js +++ b/dashboard/public/js/client.js @@ -1524,6 +1524,16 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; + Client.prototype.unarchiveApp = function (archiveId, data, callback) { + post('/api/v1/archives/' + archiveId + '/unarchive', data, null, function (error, data, status) { + if (error) return callback(error); + if (status !== 202) return callback(new ClientError(status, data)); + + callback(null, data); + }); + }; + + Client.prototype.getBackups = function (callback) { var page = 1; var perPage = 100; diff --git a/dashboard/public/translation/en.json b/dashboard/public/translation/en.json index e488f1c57..842585469 100644 --- a/dashboard/public/translation/en.json +++ b/dashboard/public/translation/en.json @@ -659,6 +659,11 @@ }, "deleteArchive": { "deleteAction": "Delete" + }, + "restoreArchiveDialog": { + "title": "Restore from Archive", + "description": "This will install {{appId}} at the specified location with backup from {{creationTime}}.", + "restoreAction": "Restore {{ dnsOverwrite ? 'and overwrite DNS' : '' }}" } }, "branding": { diff --git a/dashboard/public/views/app.html b/dashboard/public/views/app.html index fbcead3b7..669d52ce3 100644 --- a/dashboard/public/views/app.html +++ b/dashboard/public/views/app.html @@ -185,7 +185,7 @@