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="Demander la création d’un projet"
|
||||
class="dialog"
|
||||
:closeOnEscape="true"
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
id="project-dtl"
|
||||
class="w-full text-left rounded-md border border-grey-200 text-grey-800 p-12"
|
||||
style="align-self: flex-start"
|
||||
:class="{ 'selected': isDTLEnabled }"
|
||||
:class="{ selected: isDTLEnabled }"
|
||||
>
|
||||
<input id="dtl" type="checkbox" v-model="isDTLEnabled" />
|
||||
<label
|
||||
|
|
@ -78,20 +78,20 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import Dialog from "primevue/dialog";
|
||||
import { ref, watch } from "vue";
|
||||
import { useApiStore } from "../stores/api";
|
||||
import Dialog from 'primevue/dialog';
|
||||
import { ref, watch } from 'vue';
|
||||
import { useApiStore } from '../stores/api';
|
||||
|
||||
const title = ref("");
|
||||
const details = ref("");
|
||||
const title = ref('');
|
||||
const details = ref('');
|
||||
const isDTLEnabled = ref(false);
|
||||
const api = useApiStore();
|
||||
const isOpen = ref(true);
|
||||
const emits = defineEmits("close");
|
||||
const emits = defineEmits('close');
|
||||
|
||||
watch(isOpen, (newValue) => {
|
||||
if (!newValue) {
|
||||
emits("close");
|
||||
emits('close');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ async function handleSubmit() {
|
|||
isDTLEnabled: isDTLEnabled.value,
|
||||
};
|
||||
|
||||
const response = await api.post(formData, "request-project-creation.json");
|
||||
const response = await api.post(formData, 'request-project-creation.json');
|
||||
isOpen.value = false;
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue