Remove close button from notice
authorChloe Laisne <chloe.laisne@gmail.com>
Fri, 14 Oct 2016 19:58:09 +0200
changeset 335 9247384cb264
parent 334 cffb9b124af3
child 336 f076ddd29e13
Remove close button from notice
cms/app-client/app/components/notice-component.js
cms/app-client/app/templates/components/notice-component.hbs
--- a/cms/app-client/app/components/notice-component.js	Fri Oct 14 19:53:56 2016 +0200
+++ b/cms/app-client/app/components/notice-component.js	Fri Oct 14 19:58:09 2016 +0200
@@ -57,14 +57,6 @@
             }
         }
         return location;
-    }),
-
-    actions: {
-
-        close: function() {
-            this.set('model', null);
-        }
-
-    }
+    })
 
 });
--- a/cms/app-client/app/templates/components/notice-component.hbs	Fri Oct 14 19:53:56 2016 +0200
+++ b/cms/app-client/app/templates/components/notice-component.hbs	Fri Oct 14 19:58:09 2016 +0200
@@ -1,7 +1,3 @@
-{{#if model}}
-<i class="fa fa-close" {{action 'close'}}>Close</i>
-{{/if}}
-
 <h2>Notice</h2>
 <h3>{{ item.title }}</h3>
 <table>