This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<option value="members">Internal - Members</option>
|
||||
<option value="choir">Internal - Choir</option>
|
||||
<option value="management">Internal - Management</option>
|
||||
<option value="birthdays">Internal - Birthdays</option>
|
||||
</select>
|
||||
<span> | </span>
|
||||
<span>Filter: </span>
|
||||
|
||||
@@ -81,6 +81,8 @@ export class AdminComponent implements OnInit {
|
||||
return 4;
|
||||
case 'management':
|
||||
return 3;
|
||||
case 'birthdays':
|
||||
return 5;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
@@ -93,6 +95,11 @@ export class AdminComponent implements OnInit {
|
||||
}
|
||||
|
||||
checkEventMeetsFilterCriteria(event: Event): boolean {
|
||||
// Always return birthdays regardless of date
|
||||
if(event.calendarId === 5) {
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (this.eventFilter) {
|
||||
case '':
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user