client: update API error dialog to error refactoring
All checks were successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Johann150 2022-11-13 12:59:45 +01:00
parent 1d877e97f0
commit 26f1b66c6a
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -103,7 +103,7 @@ export const apiWithDialog = ((
promiseDialog(promise, null, (err) => {
alert({
type: 'error',
text: err.message + '\n' + (err as any).id,
text: (err.message + '\n' + (err?.endpoint ?? '') + (err?.code ?? '')).trim(),
});
});
@ -141,7 +141,7 @@ export function promiseDialog<T extends Promise<any>>(
}
});
// NOTE: dynamic importすると挙動がおかしくなる(showingの変更が伝播しない)
// NOTE: dynamic import results in strange behaviour (showing is not reactive)
popup(MkWaitingDialog, {
success,
showing,