Finish edit capabilities and add adding capabilities

This commit is contained in:
2022-12-26 15:59:24 +01:00
parent 6dd89e4c69
commit 8ae121ca0c
9 changed files with 228 additions and 76 deletions
+18
View File
@@ -49,4 +49,22 @@ export class AdminComponent implements OnInit {
this.isLoggedIn = true;
this.getEvents();
}
handleCalendarChange() {
this.events = [];
this.getEvents();
}
getCalendarId(text: string): number {
switch(text) {
case 'public':
return 1;
case 'members':
return 2;
case 'management':
return 3;
default:
return -1;
}
}
}