A platform for community discussion. Free, open, simple.
FIX: Deprecated overwriting of computed property
Robin Ward070fe7f45d16
diff --git a/app/assets/javascripts/discourse/app/components/discourse-banner.js b/app/assets/javascripts/discourse/app/components/discourse-banner.jsindex e9149bb0e8d..baf54cfdc28 100644--- a/app/assets/javascripts/discourse/app/components/discourse-banner.js+++ b/app/assets/javascripts/discourse/app/components/discourse-banner.js@@ -2,6 +2,8 @@ import discourseComputed from "discourse-common/utils/decorators";import Component from "@ember/component";export default Component.extend({+ hide: false,+@discourseComputed("banner.html")content(bannerHtml) {const $div = $("<div>");@@ -30,7 +32,7 @@ export default Component.extend({if (this.user) {this.user.dismissBanner(this.get("banner.key"));} else {- this.set("visible", false);+ this.set("hide", true);this.keyValueStore.set({key: "dismissed_banner_key",value: this.get("banner.key"),