mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 19:52:15 +01:00
Added timezone for user; Moved dashboard to controller
This commit is contained in:
@@ -20,6 +20,7 @@ const form = useForm({
|
||||
name: props.user.name,
|
||||
email: props.user.email,
|
||||
photo: null as File | null,
|
||||
timezone: props.user.timezone,
|
||||
});
|
||||
|
||||
const verificationLinkSent = ref<boolean | null>(null);
|
||||
@@ -198,6 +199,17 @@ const page = usePage<{
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Timezone -->
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<InputLabel for="timezone" value="Timezone" />
|
||||
<select name="timezone" id="timezone" v-model="form.timezone" class="mt-1 block w-full border-input-border bg-input-background text-white focus:border-input-border-active rounded-md shadow-sm">
|
||||
<option v-for="timezone in $page.props.timezones" :value="timezone">
|
||||
{{ timezone }}
|
||||
</option>
|
||||
</select>
|
||||
<InputError :message="form.errors.timezone" class="mt-2" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template #actions>
|
||||
|
||||
@@ -110,6 +110,7 @@ export interface User {
|
||||
two_factor_secret?: string | null;
|
||||
two_factor_recovery_codes?: string | null;
|
||||
two_factor_confirmed_at: string | null;
|
||||
timezone: string;
|
||||
// mutators
|
||||
profile_photo_url: string;
|
||||
// relations
|
||||
|
||||
Reference in New Issue
Block a user