Move showError into appError scope

This commit is contained in:
Girish Ramakrishnan
2019-09-05 17:50:10 -07:00
parent 739e308c0e
commit ff16a4334f
2 changed files with 12 additions and 12 deletions

View File

@@ -532,7 +532,17 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
};
$scope.appError = {
app: {}
app: {},
show: function (app) {
$scope.reset();
$scope.appError.app = app;
$('#appErrorModal').modal('show');
return false; // prevent propagation and default
}
};
$scope.appUpdate = {
@@ -669,16 +679,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
return false; // prevent propagation and default
};
$scope.showError = function (app) {
$scope.reset();
$scope.appError.app = app;
$('#appErrorModal').modal('show');
return false; // prevent propagation and default
};
$scope.renderAccessRestrictionUser = function (userId) {
var user = $scope.users.filter(function (u) { return u.id === userId; })[0];