mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-09 05:09:39 +00:00
Improve scanner UI
This commit is contained in:
@@ -27,7 +27,7 @@ export class ToolsComponent {
|
||||
this.scanErrorModal.nativeElement.showModal()
|
||||
} else if (status === 'done') {
|
||||
this.scanning = false
|
||||
this.buttonText = 'Complete! (click to scan again)'
|
||||
this.buttonText = message + ' (click to scan again)'
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
||||
@@ -54,14 +54,16 @@ export async function scanIssues() {
|
||||
|
||||
limiter.on('idle', async () => {
|
||||
const issues = getChartIssues(charts)
|
||||
const xlsx = await getIssuesXLSX(issues)
|
||||
const outputPath = [settings.spreadsheetOutputPath, `chart_issues_${dayjs().format('YYYY.MM.DD_HH.mm.ss')}.xlsx`].join('/')
|
||||
await writeFile(outputPath, new Uint8Array(xlsx))
|
||||
await new Promise<void>(resolve => setTimeout(resolve, 500)) // Delay for OS file processing
|
||||
await shell.openPath(outputPath)
|
||||
if (issues.length > 0) {
|
||||
const xlsx = await getIssuesXLSX(issues)
|
||||
const outputPath = [settings.spreadsheetOutputPath, `chart_issues_${dayjs().format('YYYY.MM.DD_HH.mm.ss')}.xlsx`].join('/')
|
||||
await writeFile(outputPath, new Uint8Array(xlsx))
|
||||
await new Promise<void>(resolve => setTimeout(resolve, 500)) // Delay for OS file processing
|
||||
await shell.openPath(outputPath)
|
||||
}
|
||||
emitIpcEvent('updateIssueScan', {
|
||||
status: 'done',
|
||||
message: `${issues.length} issues found in ${charts.length} charts. Spreadsheet saved to ${outputPath}`,
|
||||
message: `${issues.length} issues found in ${charts.length} charts.`,
|
||||
})
|
||||
resolve()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user