Skip to content
Snippets Groups Projects
Commit af7a7d11 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

exclude custom prefix

parent dc67b6c0
No related branches found
No related tags found
No related merge requests found
<div class="toast-holder">
<div *ngFor="let toast of toasts | keyvalue">
<div class="toast {{toast.value.type}}">
<div class="toast {{getDrugstoneClass(toast.value.type)}}">
<a (click)="close(toast.key)" aria-label="close" class="close">
<span class="icon" title="Close analysis">
<i class="fas fa-times" aria-hidden="true"></i>
......
......@@ -13,6 +13,8 @@ export class ToastComponent implements OnInit {
public toastIdPrefix = 'drugstone-toast-id-';
constructor(public toast: ToastService) { }
ngOnInit(): void {
......@@ -21,6 +23,10 @@ export class ToastComponent implements OnInit {
})
}
public getDrugstoneClass(type: string) {
return 'drugstone-plugin-' + type
}
public close(id: number) {
this.toast.deleteToast(id);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment