mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Better handling of negative datetime timezone offsets.
Fix an issue with Autoreply message definition and also a bug in the frontend form.
This commit is contained in:
@@ -104,10 +104,11 @@ async function submit() {
|
||||
accountApi.getARMessage().then((resp) => {
|
||||
form.value = resp.data
|
||||
if (form.value.fromdate) {
|
||||
form.value.fromdate = form.value.fromdate.slice(0, -4)
|
||||
form.value.fromdate = form.value.fromdate.slice(0, -6)
|
||||
console.log(form.value.fromdate)
|
||||
}
|
||||
if (form.value.untildate) {
|
||||
form.value.untildate = form.value.untildate.slice(0, -4)
|
||||
form.value.untildate = form.value.untildate.slice(0, -6)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -1,50 +1,52 @@
|
||||
<template>
|
||||
<v-toolbar flat>
|
||||
<v-toolbar-title>{{ $gettext('Account settings') }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<div class="pa-4">
|
||||
<v-tabs v-model="tab" color="primary" class="mb-4">
|
||||
<v-tab value="profile">
|
||||
{{ $gettext('Profile') }}
|
||||
</v-tab>
|
||||
<v-tab value="security">
|
||||
{{ $gettext('Two-factor auth') }}
|
||||
</v-tab>
|
||||
<v-tab v-if="authStore.userHasMailbox" value="forward">
|
||||
{{ $gettext('Forward') }}
|
||||
</v-tab>
|
||||
<v-tab v-if="authStore.userHasMailbox" value="autoreply">
|
||||
{{ $gettext('Auto-reply message') }}
|
||||
</v-tab>
|
||||
<v-tab
|
||||
v-if="authStore.authUser.role === constants.SUPER_ADMIN"
|
||||
value="api"
|
||||
>
|
||||
{{ $gettext('API access') }}
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
<v-tabs-window v-model="tab">
|
||||
<v-tabs-window-item value="profile">
|
||||
<ProfileForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item value="security">
|
||||
<TotpAuthForm />
|
||||
<FidoAuthForm />
|
||||
<BackupCodeAuthForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item v-if="authStore.userHasMailbox" value="forward">
|
||||
<ForwardForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item v-if="authStore.userHasMailbox" value="autoreply">
|
||||
<AutoReplyForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item
|
||||
v-if="authStore.authUser.role === constants.SUPER_ADMIN"
|
||||
value="api"
|
||||
>
|
||||
<APISetupForm />
|
||||
</v-tabs-window-item>
|
||||
</v-tabs-window>
|
||||
<div>
|
||||
<v-toolbar flat>
|
||||
<v-toolbar-title>{{ $gettext('Account settings') }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<div class="pa-4">
|
||||
<v-tabs v-model="tab" color="primary" class="mb-4">
|
||||
<v-tab value="profile">
|
||||
{{ $gettext('Profile') }}
|
||||
</v-tab>
|
||||
<v-tab value="security">
|
||||
{{ $gettext('Two-factor auth') }}
|
||||
</v-tab>
|
||||
<v-tab v-if="authStore.userHasMailbox" value="forward">
|
||||
{{ $gettext('Forward') }}
|
||||
</v-tab>
|
||||
<v-tab v-if="authStore.userHasMailbox" value="autoreply">
|
||||
{{ $gettext('Auto-reply message') }}
|
||||
</v-tab>
|
||||
<v-tab
|
||||
v-if="authStore.authUser.role === constants.SUPER_ADMIN"
|
||||
value="api"
|
||||
>
|
||||
{{ $gettext('API access') }}
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
<v-tabs-window v-model="tab">
|
||||
<v-tabs-window-item value="profile">
|
||||
<ProfileForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item value="security">
|
||||
<TotpAuthForm />
|
||||
<FidoAuthForm />
|
||||
<BackupCodeAuthForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item v-if="authStore.userHasMailbox" value="forward">
|
||||
<ForwardForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item v-if="authStore.userHasMailbox" value="autoreply">
|
||||
<AutoReplyForm />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item
|
||||
v-if="authStore.authUser.role === constants.SUPER_ADMIN"
|
||||
value="api"
|
||||
>
|
||||
<APISetupForm />
|
||||
</v-tabs-window-item>
|
||||
</v-tabs-window>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user