refactor: refs #6971 moved correct button + unmade previous changes
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2024-03-22 08:15:00 +01:00
parent 61e7a77882
commit 0c8f5f4888
2 changed files with 30 additions and 21 deletions

View File

@ -205,6 +205,17 @@ function navigateToRouteSummary(event, row) {
<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">
<QBtn
icon="vn:invoice-in-create"
color="primary"
:disable="!selectedRows?.length"
@click="openDmsUploadDialog"
class="createInvoiceIn"
>
<QTooltip>
{{ t('Create invoiceIn') }}
</QTooltip>
</QBtn>
<VnLv class="flex"> <VnLv class="flex">
<template #label> <template #label>
<span class="text-h6">{{ t('Total') }}</span> <span class="text-h6">{{ t('Total') }}</span>
@ -289,18 +300,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
@ -326,6 +325,11 @@ function navigateToRouteSummary(event, row) {
cursor: pointer; cursor: pointer;
} }
} }
.createInvoiceIn {
float: right;
margin-top: -0.2%;
}
</style> </style>
<i18n> <i18n>
es: es:

View File

@ -253,15 +253,6 @@ const openTicketsDialog = (id) => {
> >
<QTooltip>{{ t('Mark as served') }}</QTooltip> <QTooltip>{{ t('Mark as served') }}</QTooltip>
</QBtn> </QBtn>
<RouterLink :to="{ name: 'RouteCreate' }">
<QBtn
icon="add"
color="primary"
:disable="!selectedRows?.length"
@click="{ navigate }"
/>
<QTooltip>{{ t('newRoute') }}</QTooltip>
</RouterLink>
</template> </template>
</VnSubToolbar> </VnSubToolbar>
<div class="route-list"> <div class="route-list">
@ -452,6 +443,20 @@ const openTicketsDialog = (id) => {
</VnPaginate> </VnPaginate>
</div> </div>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<RouterLink :to="{ name: 'RouteCreate' }">
<QBtn
fab
icon="add"
color="primary"
:disable="!selectedRows?.length"
@click="
{
navigate;
}
"
/>
<QTooltip>{{ t('newRoute') }}</QTooltip>
</RouterLink>
</QPageSticky> </QPageSticky>
</QPage> </QPage>
</template> </template>