<div class="modal-content" {{on-key "Enter" (perform this.deleteTagTask)}} data-test-modal="confirm-delete-tag">
    <header class="modal-header">
        <h1>Are you sure you want to delete this tag?</h1>
    </header>
    <button type="button" class="close"title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>

    <div class="modal-body">
        {{#if @data.tag.count.posts}}
            <span class="red">This tag is attached to <span data-test-text="posts-count">{{gh-pluralize @data.tag.count.posts "post"}}</span>.</span>
        {{/if}}
        You’re about to delete "<strong>{{@data.tag.name}}</strong>". This is permanent! We warned you, k?
    </div>

    <div class="modal-footer">
        <button class="gh-btn" type="button" {{on "click" @close}} data-test-button="cancel"><span>Cancel</span></button>
        <GhTaskButton @buttonText="Delete" @successText="Deleted" @task={{this.deleteTagTask}} @class="gh-btn gh-btn-red gh-btn-icon" data-test-button="confirm" />
    </div>
</div>