FIX: don't show the banner topic on error page

This commit is contained in:
Régis Hanol 2014-11-25 19:09:17 +01:00
parent 515b616d30
commit 183c93904d
2 changed files with 3 additions and 3 deletions

View File

@ -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 () {

View File

@ -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}}