Browse Source

Fixed error message in Led Indicator

pull/4601/head
Kalutka Zhenya 5 years ago
parent
commit
ecf3f6a108
  1. 2
      ui-ngx/src/app/shared/components/snack-bar-component.html
  2. 3
      ui-ngx/src/app/shared/components/toast.directive.ts

2
ui-ngx/src/app/shared/components/snack-bar-component.html

@ -25,5 +25,5 @@
'info-toast': notification.type === 'info'
}">
<div class="toast-text" [innerHTML]="notification.message"></div>
<button #actionButton type="button" mat-button (click)="action()">{{ 'action.close' | translate }}</button>
<button #actionButton type="button" mat-button (click)="action($event)">{{ 'action.close' | translate }}</button>
</div>

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

@ -356,7 +356,8 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy {
}
}
action(): void {
action(event): void {
event.stopPropagation();
if (this.snackBarRef) {
this.snackBarRef.dismissWithAction();
} else {

Loading…
Cancel
Save