Improve theme/component delete modal warning

Improve theme/component delete modal warning

diff --git a/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6 b/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
index b54d1e9..ff3648f 100644
--- a/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
+++ b/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
@@ -263,7 +263,9 @@ export default Ember.Controller.extend({
 
     destroy() {
       return bootbox.confirm(
-        I18n.t("admin.customize.delete_confirm"),
+        I18n.t("admin.customize.delete_confirm", {
+          theme_name: this.get("model.name")
+        }),
         I18n.t("no_value"),
         I18n.t("yes_value"),
         result => {
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index d35fb82..b8aa27b 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3360,7 +3360,7 @@ en:
         new_style: "New Style"
         install: "Install"
         delete: "Delete"
-        delete_confirm: "Delete this theme?"
+        delete_confirm: 'Are you sure you want to delete "%{theme_name}"?'
         color: "Color"
         opacity: "Opacity"
         copy: "Copy"

GitHub sha: a859ddc7

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: