Skip to content

Commit

Permalink
fix(angular): add dismissAll method to the toast and snackbar service.
Browse files Browse the repository at this point in the history
…Closes #703
  • Loading branch information
hirsch88 committed Oct 10, 2022
1 parent 808d52e commit 4e9070a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components-angular/src/overlays/snackbar.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ export class BalSnackbarService {
create(options: BalSnackbarOptions): Components.BalSnackbar {
return balSnackbarController.create(options)
}

async dismissAll(): Promise<void> {
return balSnackbarController.dismissAll()
}
}
4 changes: 4 additions & 0 deletions packages/components-angular/src/overlays/toast.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ export class BalToastService {
create(options: BalToastOptions): Components.BalToast {
return balToastController.create(options)
}

async dismissAll(): Promise<void> {
return balToastController.dismissAll()
}
}

0 comments on commit 4e9070a

Please sign in to comment.