Skip to content

Commit

Permalink
fixup! Implement automatic out-of-office replies
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Sep 2, 2022
1 parent 1c970a6 commit a530461
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
13 changes: 7 additions & 6 deletions src/components/AccountSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@
v-if="account"
id="out-of-office-replies"
:title="t('mail', 'Vacation responder')">
<div id="out-of-office-replies">
<OutOfOfficeForm v-if="account.sieveEnabled" :account="account" />
<p v-else>
{{ t('mail', 'Please connect to a sieve server first.') }}
</p>
</div>
<p class="settings-hint">
{{ t('mail', 'Automated reply to incoming messages. If someone sends you several messages, this automated reply will be sent at most once every 4 days.') }}
</p>
<OutOfOfficeForm v-if="account.sieveEnabled" :account="account" />
<p v-else>
{{ t('mail', 'Please connect to a sieve server first.') }}
</p>
</AppSettingsSection>
<AppSettingsSection v-if="account && account.sieveEnabled"
id="sieve-filter"
Expand Down
9 changes: 1 addition & 8 deletions src/components/OutOfOfficeForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@
-->

<template>
<!-- Wait until sieve script has been fetched before showing form. -->
<form v-if="sieveScriptData" class="form" @submit.prevent="submit">
<p class="form__help-text">
{{ t('mail', 'Automated reply to incoming messages. If someone sends you several messages, this automated reply will be sent at most once every 4 days.') }}
</p>

<div class="form__multi-row">
<fieldset class="form__fieldset">
<input
Expand Down Expand Up @@ -273,10 +270,6 @@ export default {
flex-direction: column;
gap: 15px;
&__help-text {
color: var(--color-text-maxcontrast);
}
&__fieldset {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit a530461

Please sign in to comment.