@sunbird-cb/cbp-ai 0.1.94 → 0.1.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12918,6 +12918,7 @@ class ViewFinalCbpPlanComponent {
|
|
|
12918
12918
|
}
|
|
12919
12919
|
generateExcel(jsonArray, filename = "final.xlsx") {
|
|
12920
12920
|
console.log('jsonArray', jsonArray);
|
|
12921
|
+
this.loading = true;
|
|
12921
12922
|
if (!jsonArray || jsonArray.length === 0)
|
|
12922
12923
|
return;
|
|
12923
12924
|
// -------- MAIN HEADER FROM FIRST OBJECT ---------
|
|
@@ -13022,6 +13023,9 @@ class ViewFinalCbpPlanComponent {
|
|
|
13022
13023
|
XLSX.utils.book_append_sheet(wb, ws, "Sheet1");
|
|
13023
13024
|
// Export Excel
|
|
13024
13025
|
XLSX.writeFile(wb, filename);
|
|
13026
|
+
setTimeout(() => {
|
|
13027
|
+
this.loading = false;
|
|
13028
|
+
}, 5000);
|
|
13025
13029
|
}
|
|
13026
13030
|
downloadCSV() {
|
|
13027
13031
|
let fileName = '';
|