WIP: #7701: Make FormModel use url #1653

Draft
jon wants to merge 10 commits from 7701-FormModelUseUrl into dev
3 changed files with 2 additions and 11 deletions
Showing only changes of commit 20674e90b1 - Show all commits

View File

@ -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"

View File

@ -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"

View File

@ -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();