[pricelist][fix] new price will be shown after adding it

This commit is contained in:
Tim Gröger 2021-03-28 13:08:41 +02:00
parent 3d20292898
commit f58e0c382c
2 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,7 @@
<q-td key="picture" :props="drinks_props" style="min-width: 256px"> <q-td key="picture" :props="drinks_props" style="min-width: 256px">
<q-img <q-img
loading='lazy'
:src="drinks_props.row.uuid ? `/api/pricelist/picture/${drinks_props.row.uuid}?size=256`: 'no-image.svg'" :src="drinks_props.row.uuid ? `/api/pricelist/picture/${drinks_props.row.uuid}?size=256`: 'no-image.svg'"
placeholder-src='no-image.svg' placeholder-src='no-image.svg'
> >

View File

@ -1,7 +1,6 @@
<template> <template>
<q-table <q-table
v-model:pagination="pagination" v-model:pagination="pagination"
style="max-height: 130px"
dense dense
hide-header hide-header
:columns="columns" :columns="columns"
@ -11,6 +10,8 @@
virtual-scroll virtual-scroll
:rows-per-page-options="[0]" :rows-per-page-options="[0]"
> >
<!--
style="max-height: 130px" -->
<template #body="prices_props"> <template #body="prices_props">
<q-tr :props="prices_props"> <q-tr :props="prices_props">
<q-td key="price" :props="prices_props"> <q-td key="price" :props="prices_props">