See #890: added confirmation before deleting comment

environments/review-docs-rate-jr6phc/deployments/2479
Eliot Berriot 2019-09-02 15:32:14 +02:00
rodzic d5b89f01d7
commit b526c67e4f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
2 zmienionych plików z 19 dodań i 3 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -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";