Add button to show accounts section

This commit is contained in:
Girish Ramakrishnan
2016-09-07 01:44:14 -07:00
parent 36d48000b6
commit 1a0f3f687a
2 changed files with 42 additions and 0 deletions

View File

@@ -65,6 +65,11 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
password: ''
};
$scope.appAccounts = {
app: {},
info: ''
};
$scope.appError = {
app: {}
};
@@ -275,6 +280,17 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
});
};
$scope.showAccounts = function (app) {
$scope.reset();
$scope.appAccounts.app = app;
$scope.appAccounts.info = app.manifest.description;
$('#appAccountsModal').modal('show');
return false; // prevent propagation and default
};
$scope.showError = function (app) {
$scope.reset();
@@ -291,6 +307,8 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appRestore.app = app;
$('#appRestoreModal').modal('show');
return false; // prevent propagation and default
};
$scope.doRestore = function () {