WIP: #7701: Make FormModel use url #1653
|
@ -208,13 +208,6 @@ onMounted(async () => {
|
|||
...['tableActions'],
|
||||
];
|
||||
createForm.value = $props.create;
|
||||
// if ($props.create && route?.query?.createForm) {
|
||||
// showForm.value = true;
|
||||
// createForm.value = {
|
||||
// ...createForm.value,
|
||||
// ...{ formInitialData: JSON.parse(route?.query?.createForm) },
|
||||
// };
|
||||
// }
|
||||
});
|
||||
|
||||
onUnmounted(async () => {
|
||||
|
@ -1038,7 +1031,6 @@ const rowCtrlClickFunction = computed(() => {
|
|||
transition-hide="scale"
|
||||
:full-width="createComplement?.isFullWidth ?? false"
|
||||
data-cy="vn-table-create-dialog"
|
||||
persistent
|
||||
>
|
||||
<FormModelPopup
|
||||
ref="createRef"
|
||||
|
|
|
@ -204,9 +204,7 @@ async function beforeSave(data, getChanges) {
|
|||
</VnRow>
|
||||
</template>
|
||||
</VnSubToolbar>
|
||||
<!-- si se añade persistent a los dialog funciona bien.
|
||||
Sin persistent no abre el dialog al primer click -->
|
||||
<QDialog v-model="travelDialogRef" :class="['vn-row', 'wrap']" persistent>
|
||||
<QDialog v-model="travelDialogRef" :class="['vn-row', 'wrap']">
|
||||
<FormModelPopup
|
||||
:url-update="`Travels/${travel?.id}`"
|
||||
model="travel"
|
||||
|
|
|
@ -13,6 +13,7 @@ describe('Item summary', () => {
|
|||
cy.dataCy('itemTags').should('be.visible');
|
||||
});
|
||||
|
||||
//falla
|
||||
it('should regularize stock', () => {
|
||||
cy.dataCy('descriptor-more-opts').click();
|
||||
cy.get('.q-menu > .q-list > :nth-child(1) > .q-item__section').click();
|
||||
|
|
Loading…
Reference in New Issue