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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
ui-ngx/src/app/shared/components/snack-bar-component.html
-
ui-ngx/src/app/shared/components/toast.directive.ts
|
|
|
@ -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> |
|
|
|
|
|
|
|
@ -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 { |
|
|
|
|