UX: Delete Tag Warning Improvement
This commit is contained in:
parent
041ace5d3b
commit
789a354570
|
@ -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() {
|
||||
|
|
|
@ -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:"
|
||||
|
|
Loading…
Reference in New Issue