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
@@ -0,0 +1,6 @@
|
||||
export interface DialogData {
|
||||
heading?: string;
|
||||
dialogContext: any;
|
||||
submitLabel?: string;
|
||||
type: string;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class Dialogs {
|
||||
constructor() { }
|
||||
|
||||
public setColor(dataType: string): string {
|
||||
let color = 'primary';
|
||||
switch (dataType) {
|
||||
case 'Basic':
|
||||
color = 'primary';
|
||||
break;
|
||||
case 'Mild':
|
||||
color = 'primary';
|
||||
break;
|
||||
case 'Strong':
|
||||
color = 'warn';
|
||||
break;
|
||||
default:
|
||||
color = 'warn';
|
||||
}
|
||||
return color;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user