Skip to content

Commit

Permalink
fixup! feat: mail filters
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Oct 9, 2024
1 parent 9d993e2 commit d877e5e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/mailFilter/Operator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<template>
<div>
<div>
<p>{{ t('mail', 'Operator') }}</p>
<h6>{{ t('mail', 'Operator') }}</h6>
</div>
<div>
<NcCheckboxRadioSwitch :checked="filter.operator"
Expand Down
2 changes: 1 addition & 1 deletion src/components/mailFilter/Test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:value="test.field"
:required="true"
:label-outside="true"
:options="['subject', 'to', 'from']"
:options="['subject', 'from', 'to']"
@input="updateTest({ field: $event })" />
</div>
<div class="mail-filter-rows__row__column">
Expand Down
19 changes: 17 additions & 2 deletions src/components/mailFilter/UpdateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,21 @@
</div>

<div class="filter-tests">
<p>{{ t('mail', 'Tests') }}</p>
<h6>{{ t('mail', 'Tests') }}</h6>

<p>
{{ t('mail', 'Tests are applied to incoming emails on your mail server, targeting fields such as subject (the email\'s subject line), from (the sender), and to (the recipient). You can use the following operators to define conditions for these fields:') }}
</p>
<p>
<strong>is</strong>: {{ t('mail', 'An exact match. The field must be identical to the provided value.') }}
</p>
<p>
<strong>contains</strong>: {{ t('mail', 'A substring match. The field matches if the provided value is contained within it. For example, "report" would match "port".') }}
</p>
<p>
<strong>matches</strong>: {{ t('mail', 'A pattern match using wildcards. The "*" symbol represents any number of characters (including none), while "?" represents exactly one character. For example, "*report*" would match "Business report 2024".') }}
</p>

<Test v-for="test in clone.tests"
:key="test.id"
:test="test"
Expand All @@ -34,7 +48,8 @@
</div>

<div class="filter-actions">
<p>{{ t('mail', 'Actions') }}</p>
<h6>{{ t('mail', 'Actions') }}</h6>

<Action v-for="action in clone.actions"
:key="action.id"
:action="action"
Expand Down

0 comments on commit d877e5e

Please sign in to comment.