Export report table to CSV file using defined delimiter (#1798)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
dd4b37c060
commit
3b140e6f34
@@ -1,6 +1,8 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Inject } from '@angular/core';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
import { DialogData } from 'app/core/dialogs/dialog-data.model';
|
||||
import { Dialogs } from 'app/core/dialogs/dialogs';
|
||||
|
||||
/**
|
||||
* Delete dialog component.
|
||||
@@ -18,27 +20,15 @@ export class ConfirmationDialogComponent implements OnInit {
|
||||
* @param {any} data Provides a deleteContext.
|
||||
*/
|
||||
constructor(public dialogRef: MatDialogRef<ConfirmationDialogComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||
private dialogs: Dialogs,
|
||||
@Inject(MAT_DIALOG_DATA) public data: DialogData) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.setColor();
|
||||
}
|
||||
|
||||
setColor() {
|
||||
switch (this.data.type) {
|
||||
case 'Basic':
|
||||
this.color = 'primary';
|
||||
break;
|
||||
case 'Mild':
|
||||
this.color = 'primary';
|
||||
break;
|
||||
case 'Strong':
|
||||
this.color = 'warn';
|
||||
break;
|
||||
default:
|
||||
this.color = 'warn';
|
||||
}
|
||||
this.color = this.dialogs.setColor(this.data.type);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
|
||||
<mat-dialog-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="2%">
|
||||
<button mat-raised-button mat-dialog-close>{{ layout.cancelButtonText }}</button>
|
||||
<button mat-raised-button color="primary" [mat-dialog-close]="{ data: form }" [disabled]="!form.valid || form.pristine">{{ layout.addButtonText }}</button>
|
||||
<button mat-raised-button color="primary" [mat-dialog-close]="{ data: form }" [disabled]="!form.valid">{{ layout.addButtonText }}</button>
|
||||
</mat-dialog-actions>
|
||||
|
||||
-1
@@ -8,7 +8,6 @@ import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.co
|
||||
import { FormDialogComponent } from 'app/shared/form-dialog/form-dialog.component';
|
||||
import { FormfieldBase } from 'app/shared/form-dialog/formfield/model/formfield-base';
|
||||
import { SystemService } from 'app/system/system.service';
|
||||
import { TouchSequence } from 'selenium-webdriver';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-datatable-single-row',
|
||||
|
||||
Reference in New Issue
Block a user