Browse Source

Merge pull request #4601 from kalutkaz/FixedLedIndicator

Fixed error message in Led Indicator
pull/4651/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
8049918cbc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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: MouseEvent): void {
event.stopPropagation();
if (this.snackBarRef) {
this.snackBarRef.dismissWithAction();
} else {

Loading…
Cancel
Save