refactor: groups module (#1197)

See: #1196
This commit is contained in:
Karan Takalkar
2020-08-12 19:22:24 +05:30
committed by GitHub
parent c6ee2a062f
commit cc80bd9577
22 changed files with 121 additions and 101 deletions
@@ -21,7 +21,7 @@ export class EditGroupComponent implements OnInit {
minDate = new Date(2000, 0, 1);
/** Maximum date allowed. */
maxDate = new Date();
/** Group form. */
/** Edit Group form. */
editGroupForm: FormGroup;
/** Staff data. */
staffData: any;
@@ -51,7 +51,7 @@ export class EditGroupComponent implements OnInit {
}
/**
* Creates and sets the group form.
* Creates and sets the edit group form.
*/
ngOnInit() {
this.createEditGroupForm();
@@ -64,7 +64,7 @@ export class EditGroupComponent implements OnInit {
}
/**
* Creates the group form.
* Creates the edit group form.
*/
createEditGroupForm() {
this.editGroupForm = this.formBuilder.group({
@@ -89,7 +89,7 @@ export class EditGroupComponent implements OnInit {
}
/**
* Submits the group form and creates group,
* Submits the group form and edits group,
* if successful redirects to groups.
*/
submit() {