From 1f32567e3a7b81f7236aa5b5f5ebfaa4c4e0b0b0 Mon Sep 17 00:00:00 2001 From: robertfausk Date: Thu, 9 Jan 2025 17:38:22 +0100 Subject: [PATCH] Adopt WalkRemoveForm.vue page to vuetify 2 #248 --- .../js/components/PasswordChangeRequest.vue | 3 +- .../js/components/Walk/WalkRemoveForm.vue | 2 +- .../js/components/WayPoint/WayPointForm.vue | 2 +- .../WayPoint/WayPointRemoveForm.vue | 112 +++++++++--------- web/components.d.ts | 1 + 5 files changed, 58 insertions(+), 62 deletions(-) diff --git a/web/assets/js/components/PasswordChangeRequest.vue b/web/assets/js/components/PasswordChangeRequest.vue index 563662d7..dbe16529 100755 --- a/web/assets/js/components/PasswordChangeRequest.vue +++ b/web/assets/js/components/PasswordChangeRequest.vue @@ -66,8 +66,7 @@ "use strict"; import GeneralErrorAlert from './Common/GeneralErrorAlert.vue'; - import { useUserStore } from '../stores/user'; - import { useAuthStore } from '../stores/auth'; + import { useAuthStore, useUserStore } from '../stores'; export default { name: "PasswordChangeRequest", components: { GeneralErrorAlert }, diff --git a/web/assets/js/components/Walk/WalkRemoveForm.vue b/web/assets/js/components/Walk/WalkRemoveForm.vue index 1d385884..22c3be99 100755 --- a/web/assets/js/components/Walk/WalkRemoveForm.vue +++ b/web/assets/js/components/Walk/WalkRemoveForm.vue @@ -28,7 +28,7 @@ - Unerwarte Dinge können passieren, wenn du dies nicht liest. + Unerwartete Dinge können passieren, wenn du dies nicht liest.

Diese Aktion kann nicht rückgängig gemacht werden. diff --git a/web/assets/js/components/WayPoint/WayPointForm.vue b/web/assets/js/components/WayPoint/WayPointForm.vue index 8e543c33..c09db0bd 100755 --- a/web/assets/js/components/WayPoint/WayPointForm.vue +++ b/web/assets/js/components/WayPoint/WayPointForm.vue @@ -558,7 +558,7 @@ export default { return this.authStore.isSuperAdmin; }, isSubmitDisabled() { - return this.isLoading || !this.visitedAtState; + return this.isLoading || !this.visitedAtState || !this.wayPoint.locationName; }, globalErrors() { let keys = ['oneOnOneInterview', 'note', 'locationName', 'decodedImageData', 'imageFileData', 'imageFileName']; diff --git a/web/assets/js/components/WayPoint/WayPointRemoveForm.vue b/web/assets/js/components/WayPoint/WayPointRemoveForm.vue index 254c94a9..09ed6375 100755 --- a/web/assets/js/components/WayPoint/WayPointRemoveForm.vue +++ b/web/assets/js/components/WayPoint/WayPointRemoveForm.vue @@ -1,82 +1,77 @@