discourse/app/assets/javascripts/admin/addon/components/modal/merge-users-confirmation.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
871 B
Handlebars

<DModal
@title={{html-safe
(i18n "admin.user.merge.confirmation.title" username=@model.username)
}}
@closeModal={{@closeModal}}
>
<:body>
<p>
{{html-safe
(i18n
"admin.user.merge.confirmation.description"
username=@model.username
targetUsername=@model.targetUsername
text=this.text
)
}}
</p>
<Input @type="text" @value={{this.value}} />
</:body>
<:footer>
<DButton
class="btn-danger"
@action={{fn @model.merge @model.targetUsername}}
@icon="trash-can"
@disabled={{this.mergeDisabled}}
@translatedLabel={{i18n
"admin.user.merge.confirmation.transfer_and_delete"
username=@model.username
}}
/>
<DButton
@action={{@closeModal}}
@label="admin.user.merge.confirmation.cancel"
/>
</:footer>
</DModal>