ronaldkwandy

Untitled

Mar 30th, 2020
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public openInputMode(selectedDepartment?: any) {
  2.     this.selectedDepartment = selectedDepartment;
  3.     const matDialogConfig: MatDialogConfig = _.cloneDeep(GajiIdSettings.DIALOG_CONFIG);
  4.     matDialogConfig.data = selectedDepartment;
  5.  
  6.     this.inputDialogRef = this.dialog.open(DepartmentInputComponent, matDialogConfig);
  7.     this.inputDialogRef.afterClosed().subscribe(
  8.       (department: Department) => {
  9.         if (department) {
  10.           this.refreshData();
  11.         }
  12.       }
  13.     );
  14.   }
Advertisement
Add Comment
Please, Sign In to add comment