DTL panel : open proposal corresponding to dialog working for all steps
This commit is contained in:
parent
c2d00e0edf
commit
345bbfea1b
5 changed files with 42 additions and 11 deletions
|
|
@ -12,6 +12,7 @@
|
|||
>
|
||||
<h2 id="dtl-label" class="font-serif text-xl">Design to Light</h2>
|
||||
<button
|
||||
v-if="!isDialogOpen"
|
||||
@click="emits('close')"
|
||||
class="btn btn--icon btn--transparent | ml-auto"
|
||||
data-icon="close"
|
||||
|
|
@ -154,19 +155,23 @@
|
|||
</aside>
|
||||
</template>
|
||||
<script setup>
|
||||
import { storeToRefs } from "pinia";
|
||||
import { usePageStore } from "../../stores/page";
|
||||
import dayjs from "dayjs";
|
||||
import "dayjs/locale/fr";
|
||||
import { ref, onBeforeUnmount } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { ref, onBeforeUnmount, computed } from "vue";
|
||||
import { useDialogStore } from "../../stores/dialog";
|
||||
|
||||
const { proposals } = defineProps({
|
||||
proposals: Array,
|
||||
});
|
||||
|
||||
dayjs.locale("fr");
|
||||
const { openedFile } = storeToRefs(useDialogStore());
|
||||
|
||||
const { page } = storeToRefs(usePageStore());
|
||||
const isDialogOpen = computed(() => {
|
||||
return openedFile.value != null;
|
||||
});
|
||||
|
||||
dayjs.locale("fr");
|
||||
|
||||
const emits = defineEmits(["close"]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue