mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:36:24 +08:00
39 lines
971 B
Handlebars
39 lines
971 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
|
|
this.targetUsername.firstObject
|
|
}}
|
|
@icon="trash-alt"
|
|
@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> |