rename account to postInstall

part of #19
This commit is contained in:
Girish Ramakrishnan
2016-09-07 12:07:49 -07:00
parent 186d0a1156
commit a52f1e07ee
2 changed files with 14 additions and 14 deletions

View File

@@ -65,9 +65,9 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
password: ''
};
$scope.appAccounts = {
$scope.appPostInstall = {
app: {},
info: ''
message: ''
};
$scope.appError = {
@@ -280,13 +280,13 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
});
};
$scope.showAccounts = function (app) {
$scope.showPostInstall = function (app) {
$scope.reset();
$scope.appAccounts.app = app;
$scope.appAccounts.info = app.manifest.description.match(/### Accounts([\s\S]*?)###/m)[1];
$scope.appPostInstall.app = app;
$scope.appPostInstall.message = app.manifest.postInstallMessage;
$('#appAccountsModal').modal('show');
$('#appPostInstallModal').modal('show');
return false; // prevent propagation and default
};
@@ -481,8 +481,8 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
window.history.back();
};
$scope.hasAccountInfo = function (app) {
return app.manifest && app.manifest.description.match(/### Accounts/) !== null;
$scope.hasPostInstallMessage = function (app) {
return app.manifest && app.manifest.postInstallMessage;
};
function fetchUsers() {