From a859ddc77e2514d91ce4b28c8060371ff6e13ac9 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Fri, 10 May 2019 14:14:12 -0400 Subject: [PATCH] Improve theme/component delete modal warning --- .../admin/controllers/admin-customize-themes-show.js.es6 | 4 +++- config/locales/client.en.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 b54d1e9b09a..ff3648f6609 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 d35fb8209fd..b8aa27bf858 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"