Finish edit capabilities and add adding capabilities
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user