Commit e7ba1738 by Samuel Padgett

Remove extra `'` character from delete notification

parent 0eeeafb8
......@@ -419,7 +419,7 @@ angular.module("openshiftCommonUI")
name: projectName,
data: {
type: "success",
message: _.capitalize(formattedResource) + " was marked for deletion."
message: formattedResource + " was marked for deletion."
}
});
......@@ -433,7 +433,7 @@ angular.module("openshiftCommonUI")
// called if failure to delete
var alert = {
type: "error",
message: _.capitalize(formattedResource) + "\'" + " could not be deleted.",
message: formattedResource + " could not be deleted.",
details: $filter('getErrorDetails')(err)
};
NotificationsService.addNotification(alert);
......
......@@ -590,7 +590,7 @@ angular.module("openshiftCommonUI")
name: projectName,
data: {
type: "success",
message: _.capitalize(formattedResource) + " was marked for deletion."
message: formattedResource + " was marked for deletion."
}
});
......@@ -604,7 +604,7 @@ angular.module("openshiftCommonUI")
// called if failure to delete
var alert = {
type: "error",
message: _.capitalize(formattedResource) + "\'" + " could not be deleted.",
message: formattedResource + " could not be deleted.",
details: $filter('getErrorDetails')(err)
};
NotificationsService.addNotification(alert);
......
......@@ -175,13 +175,13 @@ showAlert({
name:projectName,
data:{
type:"success",
message:_.capitalize(formattedResource) + " was marked for deletion."
message:formattedResource + " was marked for deletion."
}
}), scope.success && scope.success(), navigateToList();
})["catch"](function(err) {
var alert = {
type:"error",
message:_.capitalize(formattedResource) + "' could not be deleted.",
message:formattedResource + " could not be deleted.",
details:$filter("getErrorDetails")(err)
};
NotificationsService.addNotification(alert), Logger.error(formattedResource + " could not be deleted.", err);
......
......@@ -84,7 +84,7 @@ angular.module("openshiftCommonUI")
name: projectName,
data: {
type: "success",
message: _.capitalize(formattedResource) + " was marked for deletion."
message: formattedResource + " was marked for deletion."
}
});
......@@ -98,7 +98,7 @@ angular.module("openshiftCommonUI")
// called if failure to delete
var alert = {
type: "error",
message: _.capitalize(formattedResource) + "\'" + " could not be deleted.",
message: formattedResource + " could not be deleted.",
details: $filter('getErrorDetails')(err)
};
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