0
0
Fork 0

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

This commit is contained in:
Jon Elias 2024-03-12 12:25:31 +01:00
parent 63f00c24d7
commit 64d8f86ea9
1 changed files with 9 additions and 6 deletions

View File

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