forked from FoundKeyGang/FoundKey
client: update API error dialog to error refactoring
This commit is contained in:
parent
1d877e97f0
commit
26f1b66c6a
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ export const apiWithDialog = ((
|
||||||
promiseDialog(promise, null, (err) => {
|
promiseDialog(promise, null, (err) => {
|
||||||
alert({
|
alert({
|
||||||
type: 'error',
|
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, {
|
popup(MkWaitingDialog, {
|
||||||
success,
|
success,
|
||||||
showing,
|
showing,
|
||||||
|
|
Loading…
Reference in a new issue