diff --git a/resources/js/Pages/Profile/Partials/NotificationSettingsForm.vue b/resources/js/Pages/Profile/Partials/NotificationSettingsForm.vue new file mode 100644 index 00000000..d78452f6 --- /dev/null +++ b/resources/js/Pages/Profile/Partials/NotificationSettingsForm.vue @@ -0,0 +1,106 @@ + + + diff --git a/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue b/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue index 4a2810a9..8f3a5214 100644 --- a/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue +++ b/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue @@ -8,7 +8,6 @@ import { Button } from '@/packages/ui/src/Buttons'; import PrimaryButton from '@/packages/ui/src/Buttons/PrimaryButton.vue'; import SecondaryButton from '@/packages/ui/src/Buttons/SecondaryButton.vue'; import TextInput from '@/packages/ui/src/Input/TextInput.vue'; -import { Checkbox } from '@/packages/ui/src'; import { useResendUserEmailVerificationMutation, useResetUserPendingEmailMutation, @@ -27,7 +26,6 @@ const name = ref(''); const email = ref(''); const timezone = ref(''); const weekStart = ref(''); -const sendTimeEntryStillRunningEmail = ref(true); const photoBase64 = ref(null); const photoPreview = ref(null); @@ -42,7 +40,6 @@ function seedForm(u: User) { email.value = u.email; timezone.value = u.timezone; weekStart.value = u.week_start; - sendTimeEntryStillRunningEmail.value = u.send_time_entry_still_running_email; } watch( @@ -81,11 +78,6 @@ function buildPayload(): UpdateUserBody { if (weekStart.value !== user.value.week_start) { body.week_start = weekStart.value as UpdateUserBody['week_start']; } - if ( - sendTimeEntryStillRunningEmail.value !== user.value.send_time_entry_still_running_email - ) { - body.send_time_entry_still_running_email = sendTimeEntryStillRunningEmail.value; - } if (photoBase64.value !== null) body.photo = photoBase64.value; return body; } @@ -339,20 +331,6 @@ const page = usePage<{ {{ fieldErrors.week_start }} -
- - - - Email me when a time entry has been running for more than 8 hours - - - - {{ fieldErrors.send_time_entry_still_running_email }} - -