Close Button - Text gege Icon getsuscht

This commit is contained in:
Lorenz Hilpert
2023-07-25 14:18:18 +02:00
parent bd332b6bd9
commit 1ec253333e
2 changed files with 5 additions and 2 deletions

View File

@@ -6,6 +6,8 @@
{{ toast.message }}
</div>
<div class="text-right grow-0" *ngIf="closeable">
<button (click)="closeToast()">Close</button>
<button (click)="closeToast()">
<shared-icon icon="close"></shared-icon>
</button>
</div>
</div>

View File

@@ -2,6 +2,7 @@ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
import { Toast } from './toast.model';
import { ToasterService } from './toaster.service';
import { NgIf } from '@angular/common';
import { IconComponent } from '@shared/components/icon';
@Component({
selector: 'shell-toast',
@@ -10,7 +11,7 @@ import { NgIf } from '@angular/common';
changeDetection: ChangeDetectionStrategy.OnPush,
host: { class: 'shell-toast' },
standalone: true,
imports: [NgIf],
imports: [NgIf, IconComponent],
})
export class ToastComponent {
@Input()