@@ -13,16 +13,15 @@ export class ConfirmService {
|
||||
constructor(
|
||||
private dialog: MatDialog
|
||||
) { }
|
||||
|
||||
|
||||
|
||||
public open(options: MatDialogConfig) {
|
||||
this.dialogRef = this.dialog.open(ConfirmDialogComponent, options);
|
||||
}
|
||||
|
||||
|
||||
public confirmed(): Observable<any> {
|
||||
return this.dialogRef.afterClosed().pipe(take(1), map(res => {
|
||||
return res;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
));
|
||||
}
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ export class MessageService {
|
||||
|
||||
constructor(
|
||||
private snackbar: MatSnackBar,
|
||||
) {
|
||||
) {
|
||||
}
|
||||
|
||||
showMessage(message: string, action?: string, config?: MatSnackBarConfig) {
|
||||
|
@@ -13,16 +13,15 @@ export class PackagesService {
|
||||
constructor(
|
||||
private dialog: MatDialog
|
||||
) { }
|
||||
|
||||
|
||||
|
||||
public open(options: MatDialogConfig) {
|
||||
this.dialogRef = this.dialog.open(PackageDialogComponent, options);
|
||||
}
|
||||
|
||||
|
||||
public confirmed(): Observable<any> {
|
||||
return this.dialogRef.afterClosed().pipe(take(1), map(res => {
|
||||
return res;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user