Added configurable warning message
This commit is contained in:
committed by
Adam Saghy
parent
cee57c525e
commit
53bbe13603
@@ -0,0 +1,25 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { MatDialogRef } from '@angular/material/dialog';
|
||||
import { environment } from '../../../environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'mifos-warning-dialog',
|
||||
templateUrl: './warning-dialog.component.html',
|
||||
styleUrls: ['./warning-dialog.component.scss']
|
||||
})
|
||||
export class WarningDialogComponent implements OnInit {
|
||||
|
||||
title: string;
|
||||
content: string;
|
||||
buttonText: string;
|
||||
|
||||
constructor(public dialogRef: MatDialogRef<WarningDialogComponent>) {
|
||||
this.title = environment.warningDialog.title;
|
||||
this.content = environment.warningDialog.content;
|
||||
this.buttonText = environment.warningDialog.buttonText;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user