mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Close Button - Text gege Icon getsuscht
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user