Skip to content

Commit

Permalink
change error modal to redirect home instead of reload
Browse files Browse the repository at this point in the history
fixes #114
  • Loading branch information
jxjj committed Jan 23, 2025
1 parent 3de165a commit 5fd7e67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/client/components/ErrorModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:open="!!error"
@update:open="errorStore.clearError"
triggerButtonVariant="none"
submitButtonLabel="Reload Page"
submitButtonLabel="Go Home"
cancelButtonLabel="Close"
@submit="handleRefreshClick"
>
Expand All @@ -17,6 +17,7 @@ import { computed } from "vue";
import { ApiError } from "@/api/ApiError";
import Modal from "./Modal.vue";
import { useErrorStore } from "@/stores/useErrorStore";
import config from "@/config";
const errorStore = useErrorStore();
Expand Down Expand Up @@ -48,7 +49,7 @@ const message = computed(() => {
function handleRefreshClick() {
errorStore.clearError();
window.location.reload();
window.location.href = config.client.baseUrl;
}
</script>
<style scoped></style>

0 comments on commit 5fd7e67

Please sign in to comment.