replace zero key with no_topics
This commit is contained in:
parent
789a354570
commit
13cc0fd665
|
@ -116,7 +116,8 @@ export default Ember.Controller.extend(BulkTopicSelection, {
|
|||
deleteTag() {
|
||||
const self = this;
|
||||
const topicsLength = this.get('list.topic_list.topics.length');
|
||||
bootbox.confirm(I18n.t("tagging.delete_confirm", {count: topicsLength}), function(result) {
|
||||
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; }
|
||||
|
||||
self.get("tag").destroyRecord().then(function() {
|
||||
|
|
|
@ -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?"
|
||||
zero: "Are you sure you want to delete this tag?"
|
||||
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