remove warnings due to type checks
This commit is contained in:
parent
ff4f62870f
commit
6291f3259a
7 changed files with 63 additions and 56 deletions
|
|
@ -4,7 +4,7 @@
|
|||
v-model:visible="isOpen"
|
||||
modal
|
||||
:draggable="false"
|
||||
dismissableMask="true"
|
||||
:dismissableMask="true"
|
||||
header="Titre du PDF"
|
||||
class="dialog"
|
||||
:class="[
|
||||
|
|
@ -43,15 +43,15 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import Dialog from "primevue/dialog";
|
||||
import PdfViewer from "./PdfViewer.vue";
|
||||
import DTLPanel from "../design-to-light/DTLPanel.vue";
|
||||
import { computed, ref, watch } from "vue";
|
||||
import { useDialogStore } from "../../stores/dialog";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useApiStore } from "../../stores/api";
|
||||
import { usePageStore } from "../../stores/page";
|
||||
import Dialog from 'primevue/dialog';
|
||||
import PdfViewer from './PdfViewer.vue';
|
||||
import DTLPanel from '../design-to-light/DTLPanel.vue';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { useDialogStore } from '../../stores/dialog';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useApiStore } from '../../stores/api';
|
||||
import { usePageStore } from '../../stores/page';
|
||||
|
||||
const { openedFile, isCommentsOpen } = storeToRefs(useDialogStore());
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ watch(isOpen, (newValue) => {
|
|||
|
||||
openedFile.value = route.query.fileIndex
|
||||
? dialog.content.files[route.query.fileIndex]
|
||||
: dialog.content.files.find((file) => file.type === "document");
|
||||
: dialog.content.files.find((file) => file.type === 'document');
|
||||
|
||||
const correspondingDTLProposal = computed(() => {
|
||||
if (!hasDTLProposal.value || !isOpen.value || !openedFile.value) return false;
|
||||
|
|
@ -91,7 +91,7 @@ const correspondingDTLProposal = computed(() => {
|
|||
// Functions
|
||||
async function validate() {
|
||||
const response = await api.validateBrief(
|
||||
route.path + "/client-brief",
|
||||
route.path + '/client-brief',
|
||||
route.fullPath
|
||||
);
|
||||
if (response.success) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue