From 20890f7e6739c45f0bb8dfe948f485f1f81a97dc Mon Sep 17 00:00:00 2001 From: Keegan George Date: Wed, 20 Jul 2022 15:15:13 -0700 Subject: [PATCH] DEV: Improve variable naming for edit icon --- javascripts/discourse/api-initializers/table-editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascripts/discourse/api-initializers/table-editor.js b/javascripts/discourse/api-initializers/table-editor.js index bf87cae..2694388 100644 --- a/javascripts/discourse/api-initializers/table-editor.js +++ b/javascripts/discourse/api-initializers/table-editor.js @@ -18,13 +18,13 @@ export default apiInitializer("0.11.1", (api) => { "btn", "btn-icon-text" ); - const expandIcon = create( + const editIcon = create( iconNode("pencil-alt", { class: "edit-table-icon" }) ); const openPopupText = document.createTextNode( I18n.t(themePrefix("discourse_table_builder.edit.btn_edit")) ); - openPopupBtn.append(expandIcon, openPopupText); + openPopupBtn.append(editIcon, openPopupText); return openPopupBtn; }