discourse/app/assets/javascripts/admin/addon/components/modal/delete-posts-confirmation.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
882 B
Handlebars
Raw Normal View History

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