Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fixed SonarIssues Alerts to Bootstrap Notification"
[policy/engine.git]
/
POLICY-SDK-APP
/
src
/
main
/
webapp
/
app
/
policyApp
/
controller
/
PolicyAddScopeRoleController.js
diff --git
a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/PolicyAddScopeRoleController.js
b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/PolicyAddScopeRoleController.js
index
051a913
..
7715c77
100644
(file)
--- a/
POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/PolicyAddScopeRoleController.js
+++ b/
POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/PolicyAddScopeRoleController.js
@@
-17,7
+17,7
@@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-app.controller('editRoleController' , function ($scope, PolicyAppService, $modalInstance, message){
+app.controller('editRoleController' , function ($scope, PolicyAppService, $modalInstance, message
, Notification
){
if (message.editRoleData != null) {
$scope.label='Edit Role'
$scope.disableCd=true;
if (message.editRoleData != null) {
$scope.label='Edit Role'
$scope.disableCd=true;
@@
-67,7
+67,7
@@
app.controller('editRoleController' , function ($scope, PolicyAppService, $moda
$modalInstance.close({rolesDatas:$scope.rolesDatas});
},
error : function(data){
$modalInstance.close({rolesDatas:$scope.rolesDatas});
},
error : function(data){
-
alert
("Error while saving Role.");
+
Notification.error
("Error while saving Role.");
}
});
};
}
});
};
@@
-90,7
+90,7
@@
app.controller('editRoleController' , function ($scope, PolicyAppService, $moda
$modalInstance.close({rolesDatas:$scope.rolesDatas});
},
error : function(data) {
$modalInstance.close({rolesDatas:$scope.rolesDatas});
},
error : function(data) {
-
alert
("Error while Creating Mechid scopes.");
+
Notification.error
("Error while Creating Mechid scopes.");
}
});
};
}
});
};