FIX: `isVisible` is no longer allowed even if used properly
This changes it to `shouldShow` instead.
This commit is contained in:
parent
05831c2b42
commit
7887aaf587
|
@ -5,4 +5,5 @@ export default Component.extend({
|
|||
href: null,
|
||||
title: null,
|
||||
ariaLabel: null,
|
||||
shouldShow: null,
|
||||
});
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue