Commit ecf3f6a10877f54a592c3f6698c52a5ee79cdfda

Authored by Kalutka Zhenya
1 parent c768fcba

Fixed error message in Led Indicator

@@ -25,5 +25,5 @@ @@ -25,5 +25,5 @@
25 'info-toast': notification.type === 'info' 25 'info-toast': notification.type === 'info'
26 }"> 26 }">
27 <div class="toast-text" [innerHTML]="notification.message"></div> 27 <div class="toast-text" [innerHTML]="notification.message"></div>
28 - <button #actionButton type="button" mat-button (click)="action()">{{ 'action.close' | translate }}</button> 28 + <button #actionButton type="button" mat-button (click)="action($event)">{{ 'action.close' | translate }}</button>
29 </div> 29 </div>
@@ -356,7 +356,8 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy { @@ -356,7 +356,8 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy {
356 } 356 }
357 } 357 }
358 358
359 - action(): void { 359 + action(event): void {
  360 + event.stopPropagation();
360 if (this.snackBarRef) { 361 if (this.snackBarRef) {
361 this.snackBarRef.dismissWithAction(); 362 this.snackBarRef.dismissWithAction();
362 } else { 363 } else {