disabled réunions btns
This commit is contained in:
parent
3b2f881424
commit
e66ed56324
6 changed files with 23 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ Title: Miss Dior Blooming Bouquet
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Currentstep: virtualSample
|
Currentstep: proposal
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,10 @@ class ProjectPage extends Page {
|
||||||
$this->handleClientBriefStep($child, $files, $uri);
|
$this->handleClientBriefStep($child, $files, $uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($child->stepName() == 'proposal') {
|
||||||
|
$this->handleProposalStep($child, $files, $uri);
|
||||||
|
}
|
||||||
|
|
||||||
if ($child->stepName() == 'virtualSample') {
|
if ($child->stepName() == 'virtualSample') {
|
||||||
$this->handleVirtualSampleStep($child, $files, $uri);
|
$this->handleVirtualSampleStep($child, $files, $uri);
|
||||||
}
|
}
|
||||||
|
|
@ -50,6 +54,15 @@ class ProjectPage extends Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function handleProposalStep($child, &$files, &$uri) {
|
||||||
|
$uri = $child->parent()->uri() . '?dialog=' . $child->slug();
|
||||||
|
if ($child->pdf()->isNotEmpty()) {
|
||||||
|
foreach ($child->pdf()->toFiles() as $file) {
|
||||||
|
$files[] = getFileData($file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function handleVirtualSampleStep($child, &$files, &$uri) {
|
private function handleVirtualSampleStep($child, &$files, &$uri) {
|
||||||
$uri = $child->parent()->uri() . '?dialog=' . $child->slug();
|
$uri = $child->parent()->uri() . '?dialog=' . $child->slug();
|
||||||
foreach ($child->views()->toFiles() as $file) {
|
foreach ($child->views()->toFiles() as $file) {
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
<router-link
|
<router-link
|
||||||
:to="mainItem.path"
|
:to="mainItem.path"
|
||||||
:aria-current="isCurrent(mainItem)"
|
:aria-current="isCurrent(mainItem)"
|
||||||
|
:disabled="mainItem.disabled ? true : undefined"
|
||||||
>{{ mainItem.title }}</router-link
|
>{{ mainItem.title }}</router-link
|
||||||
>
|
>
|
||||||
<span v-if="mainItem.pill" class="pill pill--secondary">{{
|
<span v-if="mainItem.pill" class="pill pill--secondary">{{
|
||||||
|
|
@ -108,6 +109,7 @@ const mainItems = [
|
||||||
path: "/reunions",
|
path: "/reunions",
|
||||||
icon: "calendar",
|
icon: "calendar",
|
||||||
pill: "Dans 2h",
|
pill: "Dans 2h",
|
||||||
|
disabled: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Inspirations",
|
title: "Inspirations",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<PdfViewer v-if="dialog.content.slug === 'client-brief'" />
|
<PdfViewer
|
||||||
|
v-if="
|
||||||
|
dialog.content.slug === 'client-brief' ||
|
||||||
|
dialog.content.slug === 'proposal'
|
||||||
|
"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import PdfViewer from "./client-brief/PdfViewer.vue";
|
import PdfViewer from "./client-brief/PdfViewer.vue";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<header class="flex | bg-white | rounded-2xl | p-8 mb-16">
|
<header class="flex | bg-white | rounded-2xl | p-8 mb-16">
|
||||||
<h1 class="font-serif | px-8">{{ title }}</h1>
|
<h1 class="font-serif | px-8">{{ title }}</h1>
|
||||||
<button class="btn | ml-auto">Demander un RDV</button>
|
<button class="btn | ml-auto" disabled>Demander un RDV</button>
|
||||||
</header>
|
</header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,6 @@
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import "dayjs/locale/fr";
|
import "dayjs/locale/fr";
|
||||||
import { usePageStore } from "../../stores/page";
|
import { usePageStore } from "../../stores/page";
|
||||||
import { useDialogStore } from "../../stores/dialog";
|
|
||||||
|
|
||||||
const { step } = defineProps({
|
const { step } = defineProps({
|
||||||
step: Object,
|
step: Object,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue