20 lines
334 B
TypeScript
20 lines
334 B
TypeScript
import {Dialog} from '@material/mwc-dialog';
|
|
|
|
import {Manager} from './Manager';
|
|
|
|
export class DialogManager extends Manager {
|
|
static selector = 'dialog';
|
|
|
|
constructor(protected dialog: Dialog) {
|
|
super(dialog);
|
|
}
|
|
|
|
public show(dialog: Dialog) {
|
|
this.dialog.show();
|
|
}
|
|
|
|
public hide() {
|
|
this.dialog.close();
|
|
}
|
|
}
|