Verified Commit b526c67e authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #890: added confirmation before deleting comment

parent d5b89f01
......@@ -17,9 +17,18 @@
</expandable-div>
</div>
<div class="meta">
<a role="button" @click.prevent="remove(note)">
<i class="trash icon"></i> <translate translate-context="*/*/*/Verb">Delete</translate>
</a>
<dangerous-button
:class="['ui', {loading: isLoading}, 'basic borderless mini button']"
color="grey"
@confirm="remove(note)">
<i class="trash icon"></i>
<translate translate-context="*/*/*/Verb">Delete</translate>
<p slot="modal-header"><translate translate-context="Popup/Moderation/Title">Delete this note?</translate></p>
<div slot="modal-content">
<p><translate translate-context="Content/Moderation/Paragraph">The note will be removed. This action is irreversible.</translate></p>
</div>
<p slot="modal-confirm"><translate translate-context="*/*/*/Verb">Delete</translate></p>
</dangerous-button>
</div>
</div>
</div>
......
......@@ -376,5 +376,12 @@ input + .help {
}
}
.ui.borderless.button {
border: none !important;
box-shadow: none !important;
padding-left: 0;
padding-right: 0;
}
@import "./themes/_light.scss";
@import "./themes/_dark.scss";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment