discourse/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.hbs
Kris a914d3230b
DEV: remap all core icons for fontawesome 6 upgrade (#28715)
Followup to 7d8974d02f

Co-authored-by: David Taylor <david@taylorhq.com>
2024-09-13 16:50:52 +01:00

36 lines
946 B
Handlebars

<DModal
@title={{html-safe
(i18n "admin.user.merge.prompt.title" username=@model.user.username)
}}
@closeModal={{@closeModal}}
>
<:body>
<p>
{{html-safe
(i18n
"admin.user.merge.prompt.description" username=@model.user.username
)
}}
</p>
<EmailGroupUserChooser
@value={{this.targetUsername}}
@options={{hash
maximum=1
filterPlaceholder="admin.user.merge.prompt.target_username_placeholder"
}}
/>
</:body>
<:footer>
<DButton
class="btn-primary"
@action={{fn @model.showMergeConfirmation (get this.targetUsername "0")}}
@icon="trash-can"
@disabled={{this.mergeDisabled}}
@translatedLabel={{i18n
"admin.user.merge.confirmation.transfer_and_delete"
username=@model.user.username
}}
/>
<DButton @action={{@closeModal}} @label="admin.user.merge.prompt.cancel" />
</:footer>
</DModal>