use delete_confirm_no_topics instead of nested no_topics
This commit is contained in:
parent
3c1e005fea
commit
5780596c50
|
@ -116,7 +116,7 @@ export default Ember.Controller.extend(BulkTopicSelection, {
|
|||
deleteTag() {
|
||||
const self = this;
|
||||
const topicsLength = this.get('list.topic_list.topics.length');
|
||||
const confirmText = topicsLength === 0 ? I18n.t("tagging.delete_confirm.no_topics") : I18n.t("tagging.delete_confirm", {count: topicsLength});
|
||||
const confirmText = topicsLength === 0 ? I18n.t("tagging.delete_confirm_no_topics") : I18n.t("tagging.delete_confirm", {count: topicsLength});
|
||||
bootbox.confirm(confirmText, function(result) {
|
||||
if (!result) { return; }
|
||||
|
||||
|
|
|
@ -2457,7 +2457,7 @@ en:
|
|||
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?"
|
||||
no_topics: "Are you sure you want to delete this tag?"
|
||||
delete_confirm_no_topics: "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