|
|
|
@ -95,6 +95,7 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
|
|
|
|
|
//@ViewChild('deleteChartSectionModal') deleteChartSectionModal: AlertModal;
|
|
|
|
|
//@ViewChild('deleteNumberSectionModal') deleteNumberSectionModal: AlertModal;
|
|
|
|
|
@ViewChild('deleteSectionModal', { static: true }) deleteSectionModal: AlertModal;
|
|
|
|
|
@ViewChild('importModal', { static: true }) importModal: AlertModal;
|
|
|
|
|
public sectionTypeToDelete: string;
|
|
|
|
|
public sectionChildrenActionOnDelete: string;
|
|
|
|
|
public indicatorChildrenActionOnDelete: string;
|
|
|
|
@ -1324,7 +1325,14 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
|
|
|
|
|
this.import_loading = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public clickImportIndicators(){
|
|
|
|
|
this.importModal.cancelButton = false;
|
|
|
|
|
this.importModal.okButtonLeft = false;
|
|
|
|
|
this.importModal.alertMessage = false;
|
|
|
|
|
this.importModal.alertTitle = 'Import Indicators';
|
|
|
|
|
this.importModal.okButtonText = 'Cancel';
|
|
|
|
|
this.importModal.open();
|
|
|
|
|
}
|
|
|
|
|
public export_indicators() {
|
|
|
|
|
this.editing = true;
|
|
|
|
|
this.export_loading = true;
|
|
|
|
@ -1383,9 +1391,9 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
|
|
|
|
|
fileChangeEvent(fileInput: any) {
|
|
|
|
|
this.editing = true;
|
|
|
|
|
this.import_loading = true;
|
|
|
|
|
|
|
|
|
|
this.filesToUpload = <Array<File>>fileInput.target.files;
|
|
|
|
|
this.upload();
|
|
|
|
|
this.importModal.cancel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
upload() {
|
|
|
|
|