@asd20/ui 3.2.614 → 3.2.616
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
|
@@ -371,20 +371,20 @@ export default {
|
|
|
371
371
|
) {
|
|
372
372
|
this.counter = this.counter + this.numberToShow
|
|
373
373
|
this.counter2 = this.counter2 + this.numberToShow
|
|
374
|
-
this.$emit('
|
|
374
|
+
this.$emit('stories-in-view')
|
|
375
375
|
}
|
|
376
376
|
},
|
|
377
377
|
prevSet() {
|
|
378
378
|
if (Math.ceil(this.counter2 / this.numberToShow) > 1) {
|
|
379
379
|
this.counter = this.counter - this.numberToShow
|
|
380
380
|
this.counter2 = this.counter2 - this.numberToShow
|
|
381
|
-
this.$emit('
|
|
381
|
+
this.$emit('stories-in-view')
|
|
382
382
|
}
|
|
383
383
|
},
|
|
384
384
|
reset() {
|
|
385
385
|
this.counter = 1
|
|
386
386
|
this.counter2 = 25
|
|
387
|
-
this.$emit('
|
|
387
|
+
this.$emit('stories-in-view')
|
|
388
388
|
},
|
|
389
389
|
},
|
|
390
390
|
}
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
:events="events"
|
|
73
73
|
:events-feed-props="eventsFeedProps"
|
|
74
74
|
@events-in-view="$emit('events-in-view')"
|
|
75
|
-
:stories="
|
|
75
|
+
:stories="clubs"
|
|
76
76
|
:stories-feed-props="storiesFeedProps"
|
|
77
77
|
@stories-in-view="$emit('stories-in-view')"
|
|
78
78
|
></asd20-feeds-section>
|
|
@@ -343,6 +343,12 @@ export default {
|
|
|
343
343
|
// link: c.link.replace('/stories', '/announcements'),
|
|
344
344
|
// }))
|
|
345
345
|
},
|
|
346
|
+
clubs() {
|
|
347
|
+
if (!Array.isArray(this.stories)) return []
|
|
348
|
+
return this.stories.filter(
|
|
349
|
+
s => !s.categories.some(c => c.includes('Clubs:'))
|
|
350
|
+
)
|
|
351
|
+
},
|
|
346
352
|
// categoryOptions() {
|
|
347
353
|
// // get a unique array of categories with duplicates removed
|
|
348
354
|
// return [
|
|
@@ -370,6 +376,13 @@ export default {
|
|
|
370
376
|
// }
|
|
371
377
|
// },
|
|
372
378
|
// },
|
|
379
|
+
mounted() {
|
|
380
|
+
this.$nextTick(() => {
|
|
381
|
+
this.$emit('announcements-in-view')
|
|
382
|
+
this.$emit('events-in-view')
|
|
383
|
+
this.$emit('stories-in-view')
|
|
384
|
+
})
|
|
385
|
+
},
|
|
373
386
|
methods: {
|
|
374
387
|
nextSet() {
|
|
375
388
|
if (
|
|
@@ -378,20 +391,20 @@ export default {
|
|
|
378
391
|
) {
|
|
379
392
|
this.counter = this.counter + this.numberToShow
|
|
380
393
|
this.counter2 = this.counter2 + this.numberToShow
|
|
381
|
-
this.$emit('
|
|
394
|
+
this.$emit('stories-in-view')
|
|
382
395
|
}
|
|
383
396
|
},
|
|
384
397
|
prevSet() {
|
|
385
398
|
if (Math.ceil(this.counter2 / this.numberToShow) > 1) {
|
|
386
399
|
this.counter = this.counter - this.numberToShow
|
|
387
400
|
this.counter2 = this.counter2 - this.numberToShow
|
|
388
|
-
this.$emit('
|
|
401
|
+
this.$emit('stories-in-view')
|
|
389
402
|
}
|
|
390
403
|
},
|
|
391
404
|
reset() {
|
|
392
405
|
this.counter = 1
|
|
393
406
|
this.counter2 = 25
|
|
394
|
-
this.$emit('
|
|
407
|
+
this.$emit('stories-in-view')
|
|
395
408
|
},
|
|
396
409
|
},
|
|
397
410
|
}
|