add logical 'or' to field conditions
This commit is contained in:
committed by
Pete Matsyburka
parent
36c64d1de4
commit
75683631f0
@@ -29,15 +29,26 @@
|
||||
>{{ t('available_in_pro') }}</a>
|
||||
</div>
|
||||
<form @submit.prevent="validateSaveAndClose">
|
||||
<div class="my-4 space-y-5">
|
||||
<div class="my-4">
|
||||
<div
|
||||
v-for="(condition, cindex) in conditions"
|
||||
:key="cindex"
|
||||
class="space-y-4 relative"
|
||||
>
|
||||
<div
|
||||
v-if="cindex > 0"
|
||||
class="divider -mb-2 mx-1"
|
||||
>
|
||||
<button
|
||||
class="btn btn-xs btn-primary w-24"
|
||||
@click.prevent="condition.operation === 'or' ? delete condition.operation : condition.operation = 'or'"
|
||||
>
|
||||
{{ condition.operation === 'or' ? t('or') : t('and') }}
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
v-if="conditions.length > 1"
|
||||
class="flex justify-between border-b mx-1 -mb-1 pb-1"
|
||||
class="flex justify-between mx-1"
|
||||
>
|
||||
<span class="text-sm">
|
||||
{{ t('condition') }} {{ cindex + 1 }}
|
||||
|
||||
@@ -148,7 +148,9 @@ const en = {
|
||||
preferences: 'Preferences',
|
||||
available_in_pro: 'Available in Pro',
|
||||
some_fields_are_missing_in_the_formula: 'Some fields are missing in the formula.',
|
||||
learn_more: 'Learn more'
|
||||
learn_more: 'Learn more',
|
||||
and: 'and',
|
||||
or: 'or'
|
||||
}
|
||||
|
||||
const es = {
|
||||
@@ -301,7 +303,9 @@ const es = {
|
||||
preferences: 'Preferencias',
|
||||
available_in_pro: 'Disponible en Pro',
|
||||
some_fields_are_missing_in_the_formula: 'Faltan algunos campos en la fórmula.',
|
||||
learn_more: 'Aprende más'
|
||||
learn_more: 'Aprende más',
|
||||
and: 'y',
|
||||
or: 'o'
|
||||
}
|
||||
|
||||
const it = {
|
||||
@@ -454,7 +458,9 @@ const it = {
|
||||
preferences: 'Preferenze',
|
||||
available_in_pro: 'Disponibile in Pro',
|
||||
some_fields_are_missing_in_the_formula: 'Alcuni campi mancano nella formula.',
|
||||
learn_more: 'Scopri di più'
|
||||
learn_more: 'Scopri di più',
|
||||
and: 'e',
|
||||
or: 'o'
|
||||
}
|
||||
|
||||
const pt = {
|
||||
@@ -607,7 +613,9 @@ const pt = {
|
||||
preferences: 'Preferências',
|
||||
available_in_pro: 'Disponível no Pro',
|
||||
some_fields_are_missing_in_the_formula: 'Faltam alguns campos na fórmula.',
|
||||
learn_more: 'Saiba mais'
|
||||
learn_more: 'Saiba mais',
|
||||
and: 'e',
|
||||
or: 'ou'
|
||||
}
|
||||
|
||||
const fr = {
|
||||
@@ -760,7 +768,9 @@ const fr = {
|
||||
preferences: 'Préférences',
|
||||
available_in_pro: 'Disponible en version Pro',
|
||||
some_fields_are_missing_in_the_formula: 'Certains champs manquent dans la formule.',
|
||||
learn_more: 'En savoir plus'
|
||||
learn_more: 'En savoir plus',
|
||||
and: 'et',
|
||||
or: 'ou'
|
||||
}
|
||||
|
||||
const de = {
|
||||
@@ -913,7 +923,9 @@ const de = {
|
||||
preferences: 'Einstellungen',
|
||||
available_in_pro: 'In Pro verfügbar',
|
||||
some_fields_are_missing_in_the_formula: 'Einige Felder fehlen in der Formel.',
|
||||
learn_more: 'Erfahren Sie mehr'
|
||||
learn_more: 'Erfahren Sie mehr',
|
||||
and: 'und',
|
||||
or: 'oder'
|
||||
}
|
||||
|
||||
export { en, es, it, pt, fr, de }
|
||||
|
||||
Reference in New Issue
Block a user