This commit is contained in:
parent
6d70187cb9
commit
c578538fe0
10 changed files with 195 additions and 107 deletions
|
|
@ -13,6 +13,7 @@
|
|||
class="btn | ml-auto"
|
||||
@click="validate"
|
||||
v-if="page.content.isvalidated != 'true'"
|
||||
:disabled="page.files.length === 0"
|
||||
>
|
||||
Valider et envoyer le brief
|
||||
</button>
|
||||
|
|
@ -29,6 +30,7 @@ import TitledPdfWrapper from "../components/project/TitledPdfWrapper.vue";
|
|||
import { usePageStore } from "../stores/page";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useApiStore } from "../stores/api";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
const stepsComponents = {
|
||||
Intro,
|
||||
|
|
@ -47,6 +49,9 @@ function changeStep(stepName) {
|
|||
}
|
||||
|
||||
function setInitialStep() {
|
||||
if (useRoute().query.step === "images") {
|
||||
return "Images";
|
||||
}
|
||||
const hasPDF = page.value.content.pdf.length !== 0;
|
||||
const hasImages =
|
||||
page.value.content.moodboard.length !== 0 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue