Skip to content

Commit

Permalink
Update error handling and simplify toast integration
Browse files Browse the repository at this point in the history
Added `scrollToFirstError` utility to focus on the first error and improved error handling in `RelativeScheduler`. Replaced manual toast injection with PrimeVue’s `useToast` for clarity and removed obsolete code. Upgraded to Vue 3.5.13 to ensure compatibility.
  • Loading branch information
janoliver20 committed Dec 11, 2024
1 parent b75eea8 commit 9d2f7d5
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 176 deletions.
227 changes: 71 additions & 156 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"primevue": "3.46.0",
"quill": "^2.0.3",
"starwars-names": "1.6.0",
"vue": "3.4.31",
"vue": "3.5.13",
"vue-cal": "^4.10.0",
"vue-i18n": "10.0.5",
"vue-router": "4.4.0"
Expand All @@ -44,7 +44,7 @@
"@babel/core": "7.24.8",
"@headlessui/vue": "1.7.22",
"@heroicons/vue": "2.1.5",
"@intlify/unplugin-vue-i18n": "^6.0.0",
"@intlify/unplugin-vue-i18n": "^6.0.1",
"@openapitools/openapi-generator-cli": "2.13.9",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/forms": "0.5.7",
Expand Down
5 changes: 1 addition & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ Prevention -- A research institute of the Ludwig Boltzmann Gesellschaft,
Oesterreichische Vereinigung zur Foerderung der wissenschaftlichen Forschung).
Licensed under the Elastic License 2.0. */
<script setup lang="ts">
import { ref, provide } from 'vue';
import Toast from 'primevue/toast';
import Footer from './components/shared/Footer.vue';
import Header from './components/shared/Header.vue';
import { useRouter } from 'vue-router';
const router = useRouter();
const toast = ref<Toast | null>(null);
provide('toast', toast);
router.beforeEach((to) => {
document.title = to.meta?.title ? to.meta.title + ' (More)' : 'More';
Expand All @@ -23,7 +20,7 @@ Licensed under the Elastic License 2.0. */
<Header />
<main class="mb-20 pt-14">
<router-view />
<Toast ref="toast" />
<Toast />
</main>
<Footer />
</template>
Expand Down
Loading

0 comments on commit 9d2f7d5

Please sign in to comment.