mirror of
https://github.com/discourse/discourse.git
synced 2024-12-10 22:23:59 +08:00
36 lines
871 B
Handlebars
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-alt"
|
||
|
@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>
|