Commit e7ba1738 by Samuel Padgett

Remove extra `'` character from delete notification

parent 0eeeafb8
...@@ -419,7 +419,7 @@ angular.module("openshiftCommonUI") ...@@ -419,7 +419,7 @@ angular.module("openshiftCommonUI")
name: projectName, name: projectName,
data: { data: {
type: "success", type: "success",
message: _.capitalize(formattedResource) + " was marked for deletion." message: formattedResource + " was marked for deletion."
} }
}); });
...@@ -433,7 +433,7 @@ angular.module("openshiftCommonUI") ...@@ -433,7 +433,7 @@ angular.module("openshiftCommonUI")
// called if failure to delete // called if failure to delete
var alert = { var alert = {
type: "error", type: "error",
message: _.capitalize(formattedResource) + "\'" + " could not be deleted.", message: formattedResource + " could not be deleted.",
details: $filter('getErrorDetails')(err) details: $filter('getErrorDetails')(err)
}; };
NotificationsService.addNotification(alert); NotificationsService.addNotification(alert);
......
...@@ -590,7 +590,7 @@ angular.module("openshiftCommonUI") ...@@ -590,7 +590,7 @@ angular.module("openshiftCommonUI")
name: projectName, name: projectName,
data: { data: {
type: "success", type: "success",
message: _.capitalize(formattedResource) + " was marked for deletion." message: formattedResource + " was marked for deletion."
} }
}); });
...@@ -604,7 +604,7 @@ angular.module("openshiftCommonUI") ...@@ -604,7 +604,7 @@ angular.module("openshiftCommonUI")
// called if failure to delete // called if failure to delete
var alert = { var alert = {
type: "error", type: "error",
message: _.capitalize(formattedResource) + "\'" + " could not be deleted.", message: formattedResource + " could not be deleted.",
details: $filter('getErrorDetails')(err) details: $filter('getErrorDetails')(err)
}; };
NotificationsService.addNotification(alert); NotificationsService.addNotification(alert);
......
...@@ -175,13 +175,13 @@ showAlert({ ...@@ -175,13 +175,13 @@ showAlert({
name:projectName, name:projectName,
data:{ data:{
type:"success", type:"success",
message:_.capitalize(formattedResource) + " was marked for deletion." message:formattedResource + " was marked for deletion."
} }
}), scope.success && scope.success(), navigateToList(); }), scope.success && scope.success(), navigateToList();
})["catch"](function(err) { })["catch"](function(err) {
var alert = { var alert = {
type:"error", type:"error",
message:_.capitalize(formattedResource) + "' could not be deleted.", message:formattedResource + " could not be deleted.",
details:$filter("getErrorDetails")(err) details:$filter("getErrorDetails")(err)
}; };
NotificationsService.addNotification(alert), Logger.error(formattedResource + " could not be deleted.", err); NotificationsService.addNotification(alert), Logger.error(formattedResource + " could not be deleted.", err);
......
...@@ -84,7 +84,7 @@ angular.module("openshiftCommonUI") ...@@ -84,7 +84,7 @@ angular.module("openshiftCommonUI")
name: projectName, name: projectName,
data: { data: {
type: "success", type: "success",
message: _.capitalize(formattedResource) + " was marked for deletion." message: formattedResource + " was marked for deletion."
} }
}); });
...@@ -98,7 +98,7 @@ angular.module("openshiftCommonUI") ...@@ -98,7 +98,7 @@ angular.module("openshiftCommonUI")
// called if failure to delete // called if failure to delete
var alert = { var alert = {
type: "error", type: "error",
message: _.capitalize(formattedResource) + "\'" + " could not be deleted.", message: formattedResource + " could not be deleted.",
details: $filter('getErrorDetails')(err) details: $filter('getErrorDetails')(err)
}; };
NotificationsService.addNotification(alert); NotificationsService.addNotification(alert);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment