forked from verdnatura/salix-front
fix: refs #7911 fixed shortcut and related files
This commit is contained in:
parent
70806769ce
commit
b6e14c4e6a
|
@ -9,7 +9,9 @@ export default {
|
|||
ctrl: true,
|
||||
alt: true,
|
||||
callback: () =>
|
||||
document.querySelector('button[shortcut="+"]')?.click(),
|
||||
document
|
||||
.querySelector(`button[shortcut="${shortcut}"]`)
|
||||
?.click(),
|
||||
}
|
||||
: binding.value;
|
||||
|
||||
|
|
|
@ -291,7 +291,6 @@ defineExpose({
|
|||
</script>
|
||||
<template>
|
||||
<QDrawer
|
||||
v-shortcut
|
||||
v-if="$props.rightSearch"
|
||||
v-model="stateStore.rightDrawer"
|
||||
side="right"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue