|
|
@@ -42,6 +42,7 @@
|
|
|
<ErrorCard
|
|
|
:message="store.errorMessage"
|
|
|
:trace-id="store.currentTraceId"
|
|
|
+ @retry="handleRetry"
|
|
|
@restart="store.resetToIdle"
|
|
|
/>
|
|
|
</template>
|
|
|
@@ -65,6 +66,17 @@ async function handleAction(data: { actionName: string; payload: Record<string,
|
|
|
// error already set in store
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+async function handleRetry() {
|
|
|
+ store.errorMessage = '';
|
|
|
+ if (store.activeCard && store.selection) {
|
|
|
+ try {
|
|
|
+ await store.submitCard(store.selection);
|
|
|
+ } catch {
|
|
|
+ // error already set in store
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|