@asd20/ui 3.2.615 → 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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.615",
8
+ "version": "3.2.616",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -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('announcements-in-view')
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('announcements-in-view')
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('announcements-in-view')
387
+ this.$emit('stories-in-view')
388
388
  },
389
389
  },
390
390
  }
@@ -345,7 +345,9 @@ export default {
345
345
  },
346
346
  clubs() {
347
347
  if (!Array.isArray(this.stories)) return []
348
- return this.stories.filter(s => !s.categories.some(c => c.includes('Clubs:')))
348
+ return this.stories.filter(
349
+ s => !s.categories.some(c => c.includes('Clubs:'))
350
+ )
349
351
  },
350
352
  // categoryOptions() {
351
353
  // // get a unique array of categories with duplicates removed
@@ -374,6 +376,13 @@ export default {
374
376
  // }
375
377
  // },
376
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
+ },
377
386
  methods: {
378
387
  nextSet() {
379
388
  if (
@@ -382,20 +391,20 @@ export default {
382
391
  ) {
383
392
  this.counter = this.counter + this.numberToShow
384
393
  this.counter2 = this.counter2 + this.numberToShow
385
- this.$emit('announcements-in-view')
394
+ this.$emit('stories-in-view')
386
395
  }
387
396
  },
388
397
  prevSet() {
389
398
  if (Math.ceil(this.counter2 / this.numberToShow) > 1) {
390
399
  this.counter = this.counter - this.numberToShow
391
400
  this.counter2 = this.counter2 - this.numberToShow
392
- this.$emit('announcements-in-view')
401
+ this.$emit('stories-in-view')
393
402
  }
394
403
  },
395
404
  reset() {
396
405
  this.counter = 1
397
406
  this.counter2 = 25
398
- this.$emit('announcements-in-view')
407
+ this.$emit('stories-in-view')
399
408
  },
400
409
  },
401
410
  }