cms/app-client/app/components/notice-component.js
changeset 502 74fba571487e
parent 447 38d5789e30d0
child 513 dad9471f0d63
--- a/cms/app-client/app/components/notice-component.js	Mon Feb 06 16:05:02 2017 +0100
+++ b/cms/app-client/app/components/notice-component.js	Wed Feb 08 15:25:24 2017 +0100
@@ -4,6 +4,7 @@
 
     player: Ember.inject.service(),
     filter: Ember.inject.service(),
+    constants: Ember.inject.service(),
 
     classNames: ['notice-component'],
 
@@ -38,6 +39,11 @@
         return location;
     }),
 
+    noticeCocoonPurlUrl: Ember.computed('item', function() {
+      const item = this.get('item');
+      return this.get('constants').COCOON_PURL_BASE_URL + item.get('cocoonId');
+    }),
+
     actions: {
 
         addThemeFilter: function(id) {
@@ -46,8 +52,11 @@
 
         addLanguageFilter: function(id) {
             this.get('filter').setFilter('language', id);
+        },
+
+        addTypeFilter: function(id) {
+            this.get('filter').setFilter('theme', id);
         }
-
     }
 
 });