Brief : fix moodboard length error
This commit is contained in:
parent
2e31a5f1aa
commit
c246055bd8
1 changed files with 7 additions and 3 deletions
|
|
@ -13,9 +13,13 @@
|
||||||
class="btn | ml-auto"
|
class="btn | ml-auto"
|
||||||
@click="validate"
|
@click="validate"
|
||||||
v-if="page.content.isvalidated != 'true'"
|
v-if="page.content.isvalidated != 'true'"
|
||||||
:disabled="page.moodboard.length === 0"
|
:disabled="
|
||||||
|
!page.hasOwnProperty('moodboard') || page.moodboard.length === 0
|
||||||
|
"
|
||||||
:title="
|
:title="
|
||||||
page.moodboard.length === 0 ? 'Ajoutez au moins une image' : undefined
|
!page.hasOwnProperty('moodboard') || page.moodboard.length === 0
|
||||||
|
? 'Ajoutez au moins une image'
|
||||||
|
: undefined
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
Valider et envoyer le brief
|
Valider et envoyer le brief
|
||||||
|
|
@ -57,7 +61,7 @@ function setInitialStep() {
|
||||||
}
|
}
|
||||||
const hasPDF = page.value?.content?.pdf?.length !== 0;
|
const hasPDF = page.value?.content?.pdf?.length !== 0;
|
||||||
const hasImages =
|
const hasImages =
|
||||||
page.value.content.moodboard.length !== 0 ||
|
page.value.content?.moodboard.length !== 0 ||
|
||||||
page.value.content.description.length !== 0;
|
page.value.content.description.length !== 0;
|
||||||
const isEmpty = !hasPDF && !hasImages;
|
const isEmpty = !hasPDF && !hasImages;
|
||||||
if (isEmpty) return 'Intro';
|
if (isEmpty) return 'Intro';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue