Browse Source

Refactoring

pull/4601/head
Kalutka Zhenya 5 years ago
parent
commit
9209760036
  1. 3
      ui-ngx/src/app/shared/components/toast.directive.ts

3
ui-ngx/src/app/shared/components/toast.directive.ts

@ -256,6 +256,7 @@ import {
animate, animate,
} from '@angular/animations'; } from '@angular/animations';
import { onParentScrollOrWindowResize } from '@core/utils'; import { onParentScrollOrWindowResize } from '@core/utils';
import ClickEvent = JQuery.ClickEvent;
export const toastAnimations: { export const toastAnimations: {
readonly showHideToast: AnimationTriggerMetadata; readonly showHideToast: AnimationTriggerMetadata;
@ -356,7 +357,7 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy {
} }
} }
action(event): void { action(event: MouseEvent): void {
event.stopPropagation(); event.stopPropagation();
if (this.snackBarRef) { if (this.snackBarRef) {
this.snackBarRef.dismissWithAction(); this.snackBarRef.dismissWithAction();

Loading…
Cancel
Save