Move files

This commit is contained in:
aditya.chandel
2024-12-25 16:32:00 -07:00
parent b4f9829682
commit 2734c9bd4a
8 changed files with 5 additions and 5 deletions
@@ -0,0 +1,26 @@
import { Injectable } from '@angular/core';
import {MessageService} from 'primeng/api';
@Injectable({
providedIn: 'root'
})
export class ToastService {
constructor(private messageService: MessageService) {}
showSuccess(summary: string, detail: string) {
this.messageService.add({ severity: 'success', summary, detail });
}
showError(summary: string, detail: string) {
this.messageService.add({ severity: 'error', summary, detail });
}
showInfo(summary: string, detail: string) {
this.messageService.add({ severity: 'info', summary, detail });
}
showWarning(summary: string, detail: string) {
this.messageService.add({ severity: 'warn', summary, detail });
}
}