feat: group actions (edit-meeting-schedule) (#1054)

Fixes: #1053
This commit is contained in:
Karan Takalkar
2020-07-10 13:10:14 +05:30
committed by GitHub
parent 633c03fffc
commit 24c9e04c09
11 changed files with 200 additions and 7 deletions
@@ -1,6 +1,6 @@
/** Angular Imports */
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ActivatedRoute, Router } from '@angular/router';
/**
* Group actions component.
@@ -21,6 +21,7 @@ export class GroupActionsComponent {
'Attendance': boolean
'Manage Members': boolean
'Edit Meeting': boolean
'Edit Meeting Schedule': boolean
} = {
'Assign Staff': false,
'Close': false,
@@ -28,13 +29,16 @@ export class GroupActionsComponent {
'Attach Meeting': false,
'Attendance': false,
'Manage Members': false,
'Edit Meeting': false
'Edit Meeting': false,
'Edit Meeting Schedule': false
};
/**
* @param {ActivatedRoute} route Activated Route
*/
constructor(private route: ActivatedRoute) {
constructor(private route: ActivatedRoute,
private router: Router) {
this.router.routeReuseStrategy.shouldReuseRoute = () => false;
const name = this.route.snapshot.params['name'];
this.actions[name] = true;
}