You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
583B

  1. import { Component } from '@angular/core';
  2. import { MatDialogRef } from '@angular/material/dialog';
  3. @Component({
  4. selector: 'app-confirm-dialog',
  5. templateUrl: './confirm-dialog.component.html',
  6. styleUrls: ['./confirm-dialog.component.scss'],
  7. })
  8. export class ConfirmDialogComponent {
  9. constructor(public dialogRef: MatDialogRef<ConfirmDialogComponent>) {}
  10. data = [
  11. {
  12. key: 'status1',
  13. value: false,
  14. },
  15. {
  16. name: 'status2',
  17. value: false,
  18. },
  19. ];
  20. submitChange(item: any): void{
  21. console.log(item);
  22. // call socket here
  23. }
  24. }