refactor(routeList): refs #6971 moved button to subtoolbar + same functionality as other subtoolbar items #236

Merged
jon merged 6 commits from 6971-MoveBtnToSubtoolbar into dev 2024-03-25 10:58:38 +00:00
1 changed files with 11 additions and 13 deletions

View File

@ -204,7 +204,7 @@ function navigateToRouteSummary(event, row) {
<QPage class="column items-center">
<div class="route-list">
<div class="q-pa-md">
<QCard class="vn-one q-py-sm q-px-lg">
<QCard class="vn-one q-py-sm q-px-lg flex justify-between">
<VnLv class="flex">
<template #label>
<span class="text-h6">{{ t('Total') }}</span>
@ -213,6 +213,16 @@ function navigateToRouteSummary(event, row) {
<span class="text-h6 q-ml-md">{{ toCurrency(total) }}</span>
jon marked this conversation as resolved Outdated
Outdated
Review

Puedes quitar esta clase si arriba en el QCard añades "... flex justify-between"
Y ordenas el html como lo esperas ver (VnLv primero y despures tu QBtn)

Puedes quitar esta clase si arriba en el QCard añades "... flex justify-between" Y ordenas el html como lo esperas ver (VnLv primero y despures tu QBtn)
</template>
</VnLv>
<QBtn
icon="vn:invoice-in-create"
color="primary"
:disable="!selectedRows?.length"
@click="openDmsUploadDialog"
>
<QTooltip>
{{ t('Create invoiceIn') }}
</QTooltip>
</QBtn>
</QCard>
</div>
<VnPaginate
@ -289,18 +299,6 @@ function navigateToRouteSummary(event, row) {
</template>
</VnPaginate>
</div>
<QPageSticky :offset="[20, 20]" v-if="selectedRows?.length">
<QBtn
fab
icon="vn:invoice-in-create"
color="primary"
@click="openDmsUploadDialog"
>
<QTooltip>
{{ t('Create invoiceIn') }}
</QTooltip>
</QBtn>
</QPageSticky>
</QPage>
<QDialog v-model="dmsDialog.show">
<VnDms