diff --git a/src/app/components/meeting-list/meeting-list.component.html b/src/app/components/meeting-list/meeting-list.component.html index d9cd4f8..3057f3b 100644 --- a/src/app/components/meeting-list/meeting-list.component.html +++ b/src/app/components/meeting-list/meeting-list.component.html @@ -26,32 +26,48 @@ -
- -
-
-

{{'SUNDAY' | translate}} ({{dayCount[0]}})

-
-

{{'MONDAY' | translate}} ({{dayCount[1]}})

-
-

{{'TUESDAY' | translate}} ({{dayCount[2]}})

-
-

{{'WEDNESDAY' | translate}} ({{dayCount[3]}})

-
-

{{'THURSDAY' | translate}} ({{dayCount[4]}})

-
-

{{'FRIDAY' | translate}} ({{dayCount[5]}})

-
-

{{'SATURDAY' | translate}} ({{dayCount[6]}})

-
Nothing Found.
+ + + + + + + + +
+ + + + +
+
+ {{'SUNDAY' | translate}} ({{dayCount[0]}})
+
+ {{'MONDAY' | translate}} ({{dayCount[1]}})
+
+ {{'TUESDAY' | translate}} ({{dayCount[2]}})
+
+ {{'WEDNESDAY' | translate}} ({{dayCount[3]}})
+
+ {{'THURSDAY' | translate}} ({{dayCount[4]}})
+
+ {{'FRIDAY' | translate}} ({{dayCount[5]}})
+
+ {{'SATURDAY' | translate}} ({{dayCount[6]}})
+
Nothing Found.
+
+ +
+ +
+ + + + +
+ +
- - -
- - - -
-
+ diff --git a/src/app/components/meeting-list/meeting-list.component.ts b/src/app/components/meeting-list/meeting-list.component.ts index df7f064..d3cbb3d 100644 --- a/src/app/components/meeting-list/meeting-list.component.ts +++ b/src/app/components/meeting-list/meeting-list.component.ts @@ -1,4 +1,5 @@ -import { Component, OnInit, Input, OnChanges } from '@angular/core'; +import { Component, OnInit, Input, OnChanges, ViewChild } from '@angular/core'; +import { IonAccordionGroup } from '@ionic/angular'; import { firstBy } from 'thenby'; import { Storage } from '@ionic/storage'; import { TranslateService } from '@ngx-translate/core'; @@ -17,6 +18,8 @@ import { RangeCustomEvent } from '@ionic/angular'; }) export class MeetingListComponent implements OnInit, OnChanges { + @ViewChild('accordionGroup', { static: true }) accordionGroup!: IonAccordionGroup; + @Input() data: any; @Input() meetingType: any; @Input() expandAll: any; @@ -72,6 +75,16 @@ export class MeetingListComponent implements OnInit, OnChanges { this.localMeetingType = this.meetingType; this.localExpandAll = this.expandAll; + if (this.localExpandAll === "false") { + console.log("expand All === false"); + this.accordionGroup.value = undefined; + this.accordionGroup.multiple = undefined; + } else { + console.log("expand All === true"); + this.accordionGroup.value = ['1', '2', '3', '4', '5', '6', '7']; + this.accordionGroup.multiple = true; + } + if (this.localMeetingType === 'virt') { // Get the formats this.virtFormatsProvider.getAllVirtFormats().then((serviceGroupData) => { @@ -146,19 +159,6 @@ export class MeetingListComponent implements OnInit, OnChanges { } - toggleDay(dayGrouping: any) { - if (this.isDayShown(dayGrouping)) { - this.shownDay = null; - } else { - this.shownDay = dayGrouping; - } - } - - - isDayShown(dayGrouping: any) { - return this.shownDay === dayGrouping || this.isExpandAll(); - } - isExpandAll() { if (this.localExpandAll == "true") { return true;