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"> <QPage class="column items-center">
<div class="route-list"> <div class="route-list">
<div class="q-pa-md"> <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"> <VnLv class="flex">
<template #label> <template #label>
<span class="text-h6">{{ t('Total') }}</span> <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> <span class="text-h6 q-ml-md">{{ toCurrency(total) }}</span>
</template> </template>
</VnLv> </VnLv>
<QBtn
icon="vn:invoice-in-create"
color="primary"
:disable="!selectedRows?.length"
@click="openDmsUploadDialog"
>
<QTooltip>
{{ t('Create invoiceIn') }}
</QTooltip>
</QBtn>
</QCard> </QCard>
</div> </div>
<VnPaginate <VnPaginate
@ -289,18 +299,6 @@ function navigateToRouteSummary(event, row) {
</template> </template>
</VnPaginate> </VnPaginate>
</div> </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> </QPage>
<QDialog v-model="dmsDialog.show"> <QDialog v-model="dmsDialog.show">
<VnDms <VnDms