UX: Delete Tag Warning Improvement

This commit is contained in:
Maja Komel 2017-10-06 12:13:37 +02:00
parent 041ace5d3b
commit 789a354570
2 changed files with 6 additions and 2 deletions

View File

@ -115,7 +115,8 @@ export default Ember.Controller.extend(BulkTopicSelection, {
deleteTag() {
const self = this;
bootbox.confirm(I18n.t("tagging.delete_confirm"), function(result) {
const topicsLength = this.get('list.topic_list.topics.length');
bootbox.confirm(I18n.t("tagging.delete_confirm", {count: topicsLength}), function(result) {
if (!result) { return; }
self.get("tag").destroyRecord().then(function() {

View File

@ -2454,7 +2454,10 @@ en:
tags: "Tags"
choose_for_topic: "choose optional tags for this topic"
delete_tag: "Delete Tag"
delete_confirm: "Are you sure you want to delete that tag?"
delete_confirm:
one: "Are you sure you want to delete this tag and remove it from 1 topic it is assigned to?"
other: "Are you sure you want to delete this tag and remove it from {{count}} topics it is assigned to?"
zero: "Are you sure you want to delete this tag?"
rename_tag: "Rename Tag"
rename_instructions: "Choose a new name for the tag:"
sort_by: "Sort by:"