incr: add template select and save menu items

- add shortcut for view hints, show shortcut to apply changes
- update shortcut helper ui
This commit is contained in:
18alantom
2023-03-13 12:36:56 +05:30
parent f061108565
commit 8f84f2677c
7 changed files with 248 additions and 113 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ async function exportReport(extention: ExportExtention, report: BaseGSTR) {
return;
}
await saveExportData(data, filePath, report.fyo);
await saveExportData(data, filePath);
report.fyo.telemetry.log(Verb.Exported, report.reportName, { extention });
}
+8 -3
View File
@@ -52,7 +52,7 @@ async function exportReport(extention: ExportExtention, report: Report) {
return;
}
await saveExportData(data, filePath, report.fyo);
await saveExportData(data, filePath);
report.fyo.telemetry.log(Verb.Exported, report.reportName, { extention });
}
@@ -178,7 +178,12 @@ function getValueFromCell(cell: ReportCell, displayPrecision: number) {
return rawValue;
}
export async function saveExportData(data: string, filePath: string, fyo: Fyo) {
export async function saveExportData(
data: string,
filePath: string,
message?: string
) {
await saveData(data, filePath);
showExportInFolder(fyo.t`Export Successful`, filePath);
message ??= t`Export Successful`;
showExportInFolder(message, filePath);
}