2 |
3 |
Delete all items?
4 |
5 |
6 |
This cannot be undone.
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/app/pages/list/inline-button-panel/dialog/prompt-dialog.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 | import { CommonModule } from '@angular/common';
3 | import { PromptDialog } from './prompt-dialog';
4 | import { MatDialogModule } from '@angular/material/dialog';
5 | @NgModule({
6 | declarations: [PromptDialog],
7 | imports: [CommonModule, MatDialogModule],
8 | })
9 | export class PromptDialogModule {}
10 |
--------------------------------------------------------------------------------
/src/app/pages/list/inline-button-panel/dialog/prompt-dialog.ts:
--------------------------------------------------------------------------------
1 | import { BreakpointObserver, Breakpoints, BreakpointState } from '@angular/cdk/layout';
2 | import { Component, Inject } from '@angular/core';
3 | import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
4 | import { DialogService } from '../services/dialog-service';
5 | @Component({
6 | selector: 'prompt-dialog',
7 | templateUrl: 'prompt-dialog.html',
8 | })
9 | export class PromptDialog {
10 | constructor(
11 | public dialogRef: MatDialogRef