Remove close button on notice when not from queryparams
authorChloe Laisne <chloe.laisne@gmail.com>
Wed, 06 Jul 2016 15:01:29 +0200
changeset 231 b883755cc0b8
parent 230 6e4cabc614ef
child 232 d5fb6baacbd0
Remove close button on notice when not from queryparams
cms/app-client/app/templates/components/notice-component.hbs
--- a/cms/app-client/app/templates/components/notice-component.hbs	Wed Jul 06 14:24:21 2016 +0200
+++ b/cms/app-client/app/templates/components/notice-component.hbs	Wed Jul 06 15:01:29 2016 +0200
@@ -1,4 +1,7 @@
+{{#if model}}
 <i class="fa fa-close" {{action 'close'}}>Close</i>
+{{/if}}
+
 <h2>Notice</h2>
 <h3>{{ item.title }}</h3>
 <table>