blob: f70662734efc66e6cc51c9d293043329a53a0f2c [file]
/*
******************************************************************************
* Copyright © 2018 PTA GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*
******************************************************************************
*/
import { Component, NgModule } from '@angular/core';
import { ToasterButtonEventEn } from '../../common/enums';
import { ToasterMessageService } from '../../services/toaster-message.service';
import { ToastModule } from 'primeng/toast';
@Component({
selector: 'app-toaster',
templateUrl: './toaster.component.html',
styleUrls: ['./toaster.component.css']
})
@NgModule({
exports: [ToastModule],
declarations: [ToastModule],
})
export class ToasterComponent {
constructor(public messageService: ToasterMessageService) { }
onSingleGMDeleteConfirm() {
this.messageService.toasterEmitter$.emit(ToasterButtonEventEn.deleteSingleGridMeasure);
this.messageService.clear('deletec');
}
onSingleGMReject() {
this.messageService.clear('deletec');
}
onUnlockConfirm() {
this.messageService.toasterEmitter$.emit(ToasterButtonEventEn.unlockGridMeasure);
this.messageService.clear('unlockc');
}
onUnlcokReject() {
this.messageService.clear('unlockc');
}
clear() {
this.messageService.clear();
}
}