selected-posts parial is kept and calling the new component to prevent errors with users who would have rewritten topic.hbs dashboard-problems and version-checks seem less risky and have only been converted to components
62 lines
1.1 KiB
Handlebars
62 lines
1.1 KiB
Handlebars
<p>
|
|
{{count-i18n key="topic.multi_select.description" count=selectedPostsCount}}
|
|
</p>
|
|
|
|
{{#if canSelectAll}}
|
|
<p>
|
|
<a class="select-all" href {{action selectAll}}>
|
|
{{i18n "topic.multi_select.select_all"}}
|
|
</a>
|
|
</p>
|
|
{{/if}}
|
|
|
|
{{#if canDeselectAll}}
|
|
<p>
|
|
<a href {{action deselectAll}}>
|
|
{{i18n "topic.multi_select.deselect_all"}}
|
|
</a>
|
|
</p>
|
|
{{/if}}
|
|
|
|
{{#if canDeleteSelected}}
|
|
{{d-button
|
|
action=deleteSelected
|
|
icon="far-trash-alt"
|
|
label="topic.multi_select.delete"
|
|
class="btn-danger"
|
|
}}
|
|
{{/if}}
|
|
|
|
{{#if canMergeTopic}}
|
|
{{d-button
|
|
action=(route-action "moveToTopic")
|
|
icon="sign-out-alt"
|
|
label="topic.move_to.action"
|
|
class="btn-primary move-to-topic"
|
|
}}
|
|
{{/if}}
|
|
|
|
{{#if canChangeOwner}}
|
|
{{d-button
|
|
action=(route-action "changeOwner")
|
|
icon="user"
|
|
label="topic.change_owner.action"
|
|
class="btn-primary"
|
|
}}
|
|
{{/if}}
|
|
|
|
{{#if canMergePosts}}
|
|
{{d-button
|
|
action=mergePosts
|
|
icon="arrows-v"
|
|
label="topic.merge_posts.action"
|
|
class="btn-primary"
|
|
}}
|
|
{{/if}}
|
|
|
|
<p class="cancel">
|
|
<a href {{action toggleMultiSelect}}>
|
|
{{i18n "topic.multi_select.cancel"}}
|
|
</a>
|
|
</p>
|