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 9 additions and 6 deletions
Showing only changes of commit 64d8f86ea9 - Show all commits

View File

@ -255,6 +255,15 @@ const markAsServed = () => {
> >
<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">
@ -494,12 +503,6 @@ const markAsServed = () => {
</VnPaginate> </VnPaginate>
</div> </div>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<RouterLink :to="{ name: 'RouteCreate' }">
<QBtn fab icon="add" color="primary" />
<QTooltip>
{{ t('newRoute') }}
</QTooltip>
</RouterLink>
</QPageSticky> </QPageSticky>
</QPage> </QPage>
</template> </template>