DEV: Clean up extraneous helper parens (#23186)

This commit is contained in:
Jarek Radosz 2023-08-22 16:42:22 +02:00 committed by GitHub
parent 2d8a38f883
commit fd8fdb060f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 10 deletions

View File

@ -8,7 +8,7 @@
{{! template-lint-disable no-pointer-down-event-binding }}
{{! template-lint-disable no-invalid-interactive }}
<li class="item" {{on "keydown" this.onKeydown}}>
<a href={{(or result.url result.path)}} class="search-link">
<a href={{or result.url result.path}} class="search-link">
<resultType.component @result={{result}} />
</a>
</li>

View File

@ -3,9 +3,10 @@
@title="sidebar.categories_form_modal.title"
@disableSaveButton={{this.saving}}
@save={{this.save}}
@showResetDefaultsButton={{(gt
this.siteSettings.default_navigation_menu_categories.length 0
)}}
@showResetDefaultsButton={{gt
this.siteSettings.default_navigation_menu_categories.length
0
}}
@resetToDefaults={{this.resetToDefaults}}
@deselectAll={{this.deselectAll}}
@deselectAllText={{i18n "sidebar.categories_form_modal.subtitle.text"}}
@ -55,9 +56,9 @@
this.selectedSidebarCategoryIds
category.id
}}
disabled={{(not
disabled={{not
(includes this.filteredCategoryIds category.id)
)}}
}}
{{on "click" (action "toggleCategory" category.id)}}
/>
</label>

View File

@ -3,9 +3,10 @@
@title="sidebar.tags_form_modal.title"
@saving={{this.saving}}
@save={{this.save}}
@showResetDefaultsButton={{(gt
this.siteSettings.default_navigation_menu_tags.length 0
)}}
@showResetDefaultsButton={{gt
this.siteSettings.default_navigation_menu_tags.length
0
}}
@resetToDefaults={{this.resetToDefaults}}
@deselectAll={{this.deselectAll}}
@deselectAllText={{i18n "sidebar.tags_form_modal.subtitle.text"}}

View File

@ -1,7 +1,7 @@
<div class="user-stream-item__header info">
<a
href={{this.userUrl}}
data-user-card={{(or @item.draft_username @item.username)}}
data-user-card={{or @item.draft_username @item.username}}
class="avatar-link"
>
<div class="avatar-wrapper">