mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
FIX: don't show the banner topic on error page
This commit is contained in:
parent
515b616d30
commit
183c93904d
@ -10,8 +10,8 @@ export default VisibleComponent.extend({
|
||||
if (bannerKey) { bannerKey = parseInt(bannerKey, 10); }
|
||||
if (dismissedBannerKey) { dismissedBannerKey = parseInt(dismissedBannerKey, 10); }
|
||||
|
||||
return bannerKey && dismissedBannerKey !== bannerKey;
|
||||
}.property("user.dismissed_banner_key", "banner.key"),
|
||||
return !this.get("hide") && bannerKey && dismissedBannerKey !== bannerKey;
|
||||
}.property("user.dismissed_banner_key", "banner.key", "hide"),
|
||||
|
||||
actions: {
|
||||
dismiss: function () {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class='container'>
|
||||
{{custom-html "top"}}
|
||||
{{global-notice}}
|
||||
{{discourse-banner user=currentUser banner=site.banner overlay=view.hasScrolled}}
|
||||
{{discourse-banner user=currentUser banner=site.banner overlay=view.hasScrolled hide=errorLoading}}
|
||||
</div>
|
||||
|
||||
{{#if postStream.loaded}}
|
||||
|
Loading…
Reference in New Issue
Block a user