0
0
Fork 0

fix: refs #7911 fixed shortcut and related files

This commit is contained in:
Jon Elias 2024-09-05 13:08:02 +02:00
parent 70806769ce
commit b6e14c4e6a
21 changed files with 25 additions and 21 deletions

View File

@ -9,7 +9,9 @@ export default {
ctrl: true,
alt: true,
callback: () =>
document.querySelector('button[shortcut="+"]')?.click(),
document
.querySelector(`button[shortcut="${shortcut}"]`)
?.click(),
}
: binding.value;

View File

@ -291,7 +291,6 @@ defineExpose({
</script>
<template>
<QDrawer
v-shortcut
v-if="$props.rightSearch"
v-model="stateStore.rightDrawer"
side="right"

View File

@ -14,7 +14,7 @@ onMounted(() => (stateStore.leftDrawer = $props.leftDrawer));
</script>
<template>
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256" v-shortcut>
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
<QScrollArea class="fit text-grey-8">
<LeftMenu />
</QScrollArea>

View File

@ -5,7 +5,7 @@ const quasar = useQuasar();
</script>
<template>
<QLayout view="hHh LpR fFf">
<QLayout view="hHh LpR fFf" v-shortcut>
<Navbar />
<RouterView></RouterView>
<QFooter v-if="quasar.platform.is.mobile"></QFooter>

View File

@ -110,7 +110,7 @@ onMounted(async () => await getAccountData(false));
</script>
<template>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<div class="full-width" style="max-width: 400px">
<QSpinner v-if="loading" color="primary" size="md" />
<VnPaginate

View File

@ -135,7 +135,7 @@ const toCustomerAddressEdit = (addressId) => {
/>
<div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg" v-if="addresses.length" v-shortcut>
<QCard class="card-width q-pa-lg" v-if="addresses.length">
<QCardSection>
<div
v-for="(item, index) in addresses"

View File

@ -292,7 +292,13 @@ const showBalancePdf = ({ id }) => {
</template>
</VnTable>
<QPageSticky :offset="[18, 18]" style="z-index: 2">
<QBtn @click.stop="showNewPaymentDialog()" color="primary" fab icon="add" />
<QBtn
@click.stop="showNewPaymentDialog()"
color="primary"
fab
icon="add"
shortcut="+"
/>
<QTooltip>
{{ t('New payment') }}
</QTooltip>

View File

@ -71,7 +71,7 @@ const updateData = () => {
<template>
<div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg" v-shortcut>
<QCard class="card-width q-pa-lg">
<VnPaginate
:filter="filter"
@on-fetch="fetch"

View File

@ -445,7 +445,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
<ItemListFilter data-key="ItemList" />
</template>
</RightMenu>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<VnPaginate
ref="paginateRef"
data-key="ItemList"

View File

@ -65,7 +65,7 @@ const exprBuilder = (param, value) => {
<ItemTypeFilter data-key="ItemTypeList" />
</template>
</RightMenu>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<div class="vn-card-list">
<VnPaginate
data-key="ItemTypeList"

View File

@ -46,7 +46,7 @@ function exprBuilder(param, value) {
<ShelvingFilter data-key="ShelvingList" />
</template>
</RightMenu>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<div class="vn-card-list">
<VnPaginate
data-key="ShelvingList"

View File

@ -46,7 +46,7 @@ const redirectToUpdateView = (addressData) => {
</script>
<template>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<div class="vn-card-list">
<VnPaginate
data-key="SupplierAddress"

View File

@ -48,7 +48,7 @@ const redirectToCreateView = () => {
auto-load
>
<template #body="{ rows }">
<QCard class="q-pa-md" v-shortcut>
<QCard class="q-pa-md">
<VnRow
v-for="(row, index) in rows"
:key="index"

View File

@ -174,7 +174,6 @@ const openCreateModal = () => createTicketRequestDialogRef.value.show();
class="full-width q-mt-md"
:no-data-label="t('globals.noResults')"
@row-click="(_, row) => redirectToTicketSummary(row.ticketFk)"
v-shortcut
>
<template #body-cell-description="{ row }">
<QTd @click.stop>

View File

@ -94,7 +94,6 @@ const openCreateModal = () => createTrackingDialogRef.value.show();
:pagination="{ rowsPerPage: 0 }"
class="full-width q-mt-md"
:no-data-label="t('globals.noResults')"
v-shortcut
>
<template #body-cell-worker="{ row }">
<QTd @click.stop>

View File

@ -147,7 +147,6 @@ const removeThermograph = async (id) => {
:no-data-label="t('No results')"
row-key="id"
class="full-width q-mt-md"
v-shortcut
>
<template #body-cell-downloadFile="{ row }">
<QTd auto-width>

View File

@ -40,7 +40,7 @@ async function remove(row) {
</script>
<template>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<div class="vn-card-list">
<VnPaginate
data-key="WagonTypeList"

View File

@ -47,7 +47,7 @@ async function remove(row) {
</script>
<template>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<div class="vn-card-list">
<VnPaginate
data-key="WagonList"

View File

@ -51,7 +51,7 @@ function reloadData() {
</script>
<template>
<QPage class="column items-center q-pa-md centerCard" v-shortcut>
<QPage class="column items-center q-pa-md centerCard">
<FetchData
url="workers/getAvailablePda"
@on-fetch="(data) => (deviceProductions = data)"

View File

@ -72,7 +72,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
/>
</QScrollArea>
</QDrawer>
<QPage class="q-pa-md flex justify-center" v-shortcut>
<QPage class="q-pa-md flex justify-center">
<ZoneCalendarGrid
v-model:events="events"
v-model:firstDay="firstDay"

View File

@ -66,7 +66,7 @@ const openCreateWarehouseForm = () => createWarehouseDialogRef.value.show();
</script>
<template>
<QPage class="column items-center q-pa-md" v-shortcut>
<QPage class="column items-center q-pa-md">
<div class="full-width" style="max-width: 400px">
<VnPaginate
ref="paginateRef"