@asd20/ui 3.2.853 → 3.2.855

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.853",
8
+ "version": "3.2.855",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -112,7 +112,7 @@ export default {
112
112
 
113
113
  // If the organization id is the employee org:
114
114
  return this.announcements.map(a => {
115
- const isLeadership = a.categories.includes('Leadership')
115
+ const isLeadership = a.categories.includes('ASD20-Leadership')
116
116
  const reversed = isLeadership ? false : true
117
117
 
118
118
  return mapMessageToCard(a, {
@@ -107,6 +107,7 @@
107
107
  :events-feed-props="eventsFeedProps"
108
108
  @events-in-view="$emit('events-in-view')"
109
109
  :organizationId="organization.id"
110
+ :hasProtectedContent="hasProtectedContent"
110
111
  ></asd20-feeds-section>
111
112
 
112
113
  <!-- <asd20-factoids-section
@@ -170,6 +171,14 @@ export default {
170
171
  mq() {
171
172
  return this.$mq || 'sm'
172
173
  },
174
+ hasProtectedContent() {
175
+ return (
176
+ Array.isArray(this.announcements) &&
177
+ this.announcements.some(announcement =>
178
+ announcement.categories.includes('ASD20-Leadership')
179
+ )
180
+ )
181
+ },
173
182
  },
174
183
 
175
184
  components: {