Commit ec02a4f3 by Brian Talbot Committed by Peter Fogg

Studio: changed the copy and prompt type for unit + outline deletions

parent fb0fcc31
......@@ -115,12 +115,12 @@ class CMS.Views.UnitEdit extends Backbone.View
@model.save()
deleteComponent: (event) =>
msg = new CMS.Views.Prompt.Confirmation(
title: gettext('Are you sure you want to delete this component?'),
message: gettext('This action cannot be undone.'),
msg = new CMS.Views.Prompt.Warning(
title: gettext('Delete this component?'),
message: gettext('Deleting this component is permanent and cannot be undone.'),
actions:
primary:
text: gettext('OK'),
text: gettext('Yes, delete this component'),
click: (view) =>
view.hide()
deleting = new CMS.Views.Notification.Mini
......
......@@ -370,12 +370,12 @@ function deleteSection(e) {
}
function _deleteItem($el, type) {
var confirm = new CMS.Views.Prompt.Confirmation({
title: gettext('Are you sure you wish to delete this ' + type + '?'),
message: gettext('It cannot be reversed!'),
var confirm = new CMS.Views.Prompt.Warning({
title: gettext('Delete this ' + type + '?'),
message: gettext('Deleting this ' + type + ' is permanent and cannot be undone.'),
actions: {
primary: {
text: gettext('OK'),
text: gettext('Yes, delete this ' + type),
click: function(view) {
view.hide();
......
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