2023-08-01 23:35:36 +08:00
|
|
|
<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"
|
2023-08-03 01:43:37 +08:00
|
|
|
@action={{fn @model.showMergeConfirmation (get this.targetUsername "0")}}
|
2023-08-01 23:35:36 +08:00
|
|
|
@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>
|