feat: group actions (assign/unassign staff) (#1029)

Fixes #1028
This commit is contained in:
Karan Takalkar
2020-07-08 15:37:38 +05:30
committed by GitHub
parent 356cda70b8
commit b3abac32f5
17 changed files with 356 additions and 8 deletions
@@ -0,0 +1,30 @@
/** Angular Imports */
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
/**
* Group actions component.
*/
@Component({
selector: 'mifosx-group-actions',
templateUrl: './group-actions.component.html',
styleUrls: ['./group-actions.component.scss']
})
export class GroupActionsComponent {
/** Flag object to store possible actions and render appropriate UI to the user */
actions: {
'Assign Staff': boolean
} = {
'Assign Staff': false
};
/**
* @param {ActivatedRoute} route Activated Route
*/
constructor(private route: ActivatedRoute) {
const name = this.route.snapshot.params['name'];
this.actions[name] = true;
}
}