diff --git a/app/assets/javascripts/admin/addon/controllers/admin-site-text-edit.js b/app/assets/javascripts/admin/addon/controllers/admin-site-text-edit.js index 8bcfc9b9da5..7dbc7229b21 100644 --- a/app/assets/javascripts/admin/addon/controllers/admin-site-text-edit.js +++ b/app/assets/javascripts/admin/addon/controllers/admin-site-text-edit.js @@ -48,4 +48,8 @@ export default Controller.extend(bufferedProperty("siteText"), { }, }); }, + + get interpolationKeys() { + return this.siteText.interpolation_keys.join(", "); + }, }); diff --git a/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs b/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs index 3643a123f8b..ef327ab4067 100644 --- a/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs +++ b/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs @@ -13,6 +13,12 @@ @class="site-text-value" /> + {{#if this.siteText.has_interpolation_keys}} +