diff --git a/app/assets/javascripts/discourse/app/components/d-button.js b/app/assets/javascripts/discourse/app/components/d-button.js index a501bbf2b51..b053b41867a 100644 --- a/app/assets/javascripts/discourse/app/components/d-button.js +++ b/app/assets/javascripts/discourse/app/components/d-button.js @@ -94,6 +94,8 @@ export default Component.extend({ if (action) { if (typeof action === "string") { + // Note: This is deprecated in new Embers and needs to be removed in the future. + // There is already a warning in the console. this.sendAction("action", this.actionParam); } else if (typeof action === "object" && action.value) { action.value(this.actionParam); diff --git a/app/assets/javascripts/discourse/app/components/tag-info.js b/app/assets/javascripts/discourse/app/components/tag-info.js index 5dc585f2d50..0aef4eedb6f 100644 --- a/app/assets/javascripts/discourse/app/components/tag-info.js +++ b/app/assets/javascripts/discourse/app/components/tag-info.js @@ -74,7 +74,7 @@ export default Component.extend({ }, deleteTag() { - this.sendAction("deleteAction", this.tagInfo); + this.deleteAction(this.tagInfo); }, unlinkSynonym(tag) { diff --git a/app/assets/javascripts/discourse/app/templates/components/discourse-banner.hbs b/app/assets/javascripts/discourse/app/templates/components/discourse-banner.hbs index 9b6b18c5300..dc074862b6a 100644 --- a/app/assets/javascripts/discourse/app/templates/components/discourse-banner.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/discourse-banner.hbs @@ -1,7 +1,7 @@ {{#if visible}}