refactor(dialogService): convert static component imports to dynamic imports

Amp-Thread-ID: https://ampcode.com/threads/T-019bfe1a-8ac4-753e-a612-040f36dc66b9
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Alexander Brown
2026-01-26 22:30:18 -08:00
parent 2b2a72ffda
commit fde5dfa24d
8 changed files with 99 additions and 43 deletions

View File

@@ -101,14 +101,14 @@ export function useJobMenu(
const executionError = target.taskRef?.executionError
if (executionError) {
useDialogService().showExecutionErrorDialog(executionError)
void useDialogService().showExecutionErrorDialog(executionError)
return
}
// Fall back to simple error dialog
const message = target.taskRef?.errorMessage
if (message) {
useDialogService().showErrorDialog(new Error(message), {
void useDialogService().showErrorDialog(new Error(message), {
reportType: 'queueJobError'
})
}