FIX: `isVisible` is no longer allowed even if used properly

FIX: isVisible is no longer allowed even if used properly

This changes it to shouldShow instead.

diff --git a/app/assets/javascripts/discourse/app/components/private-message-glyph.js b/app/assets/javascripts/discourse/app/components/private-message-glyph.js
index 0cb1924..d1d4042 100644
--- a/app/assets/javascripts/discourse/app/components/private-message-glyph.js
+++ b/app/assets/javascripts/discourse/app/components/private-message-glyph.js
@@ -5,4 +5,5 @@ export default Component.extend({
   href: null,
   title: null,
   ariaLabel: null,
+  shouldShow: null,
 });
diff --git a/app/assets/javascripts/discourse/app/templates/components/private-message-glyph.hbs b/app/assets/javascripts/discourse/app/templates/components/private-message-glyph.hbs
index 8339006..8ccce6f 100644
--- a/app/assets/javascripts/discourse/app/templates/components/private-message-glyph.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/private-message-glyph.hbs
@@ -1,4 +1,4 @@
-{{#if isVisible}}
+{{#if shouldShow}}
   {{#if href}}
     <a href={{href}} title={{i18n title}} aria-label={{i18n ariaLabel}}>
       <span class="private-message-glyph-wrapper">
diff --git a/app/assets/javascripts/discourse/app/templates/topic.hbs b/app/assets/javascripts/discourse/app/templates/topic.hbs
index f2cddfa..f0715b2 100644
--- a/app/assets/javascripts/discourse/app/templates/topic.hbs
+++ b/app/assets/javascripts/discourse/app/templates/topic.hbs
@@ -17,7 +17,7 @@
       {{#topic-title cancelled=(action "cancelEditingTopic") save=(action "finishedEditingTopic") model=model}}
         {{#if editingTopic}}
           <div class="edit-topic-title">
-            {{private-message-glyph isVisible=model.isPrivateMessage}}
+            {{private-message-glyph shouldShow=model.isPrivateMessage}}
 
             {{text-field id="edit-title" value=buffered.title maxlength=siteSettings.max_topic_title_length autofocus="true"}}
 
@@ -61,13 +61,13 @@
             {{#unless model.is_warning}}
               {{#if siteSettings.enable_personal_messages}}
                 {{private-message-glyph
-                  isVisible=model.isPrivateMessage
+                  shouldShow=model.isPrivateMessage
                   href=pmPath
                   title="topic_statuses.personal_message.title"
                   ariaLabel="user.messages.inbox"
                 }}
               {{else}}
-                {{private-message-glyph isVisible=model.isPrivateMessage}}
+                {{private-message-glyph shouldShow=model.isPrivateMessage}}
               {{/if}}
             {{/unless}}
 

GitHub sha: 7887aaf5