Skip to content

Commit 202ae64

Browse files
ValentinCrochemorealanpoulain
authored andcommitted
Fix display bugs
1 parent 891b045 commit 202ae64

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

templates/quasar/components/common/BreadcrumbComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<q-breadcrumbs-el
66
v-for="(breadcrumb, index) in props.values"
77
:key="index"
8-
:label="`${$t(breadcrumb.label)} ${
8+
:label="`${breadcrumb.label} ${
99
index === props.values.length - 1 && props.item?.['@id']
1010
? props.item['@id']
1111
: ''

templates/quasar/components/common/ConfirmDeleteComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<q-avatar icon="warning" color="primary" text-color="white" />
66

77
<span class="q-ml-sm">
8-
\{{ $t('Are you sure you want to delete this item?') }}
8+
\{{ $t('confirmDelete') }}
99
</span>
1010
</q-card-section>
1111

templates/quasar/components/foo/FormComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{{/compare}}
2525
bottom-slots
2626
filled
27-
class="col-12 col-md"
27+
class="col-12 col-md-4"
2828
>
2929
<template #append>
3030
<q-icon

templates/quasar/components/foo/ListComponent.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
:rows="items"
2626
:columns="columns"
2727
:loading="isLoading"
28-
:no-data-label="$t('{{{labels.unavail}}}')"
29-
:no-results-label="$t('{{{labels.noresults}}}')"
30-
:loading-label="$t('{{{labels.loading}}}')"
31-
:rows-per-page-label="$t('{{{labels.recPerPage}}}')"
28+
:no-data-label="$t('unavail')"
29+
:no-results-label="$t('noresults')"
30+
:loading-label="$t('loading')"
31+
:rows-per-page-label="$t('recPerPage')"
3232
row-key="id"
3333
flat
3434
wrap-cells
@@ -45,7 +45,7 @@
4545

4646
{{#each fields}}
4747
{{#if isReferences}}
48-
<template #body-cell-{{lowercase reference.title}}="{ value }">
48+
<template #body-cell-{{reference.name}}="{ value }">
4949
<td>
5050
<template v-if="router.hasRoute('{{reference.title}}Show')">
5151
<router-link
@@ -82,7 +82,7 @@
8282
</td>
8383
</template>
8484
{{else if isEmbeddeds}}
85-
<template #body-cell-{{lowercase embedded.title}}="{ value }">
85+
<template #body-cell-{{embedded.name}}="{ value }">
8686
<td>
8787
<template v-if="router.hasRoute('{{embedded.title}}Show')">
8888
<router-link

templates/quasar/components/foo/ShowComponent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<q-markup-table>
1010
<thead>
1111
<tr>
12-
<th>\{{ $t('{{labels.field}}') }}</th>
13-
<th>\{{ $t('{{labels.value}}') }}</th>
12+
<th>\{{ $t('field') }}</th>
13+
<th>\{{ $t('value') }}</th>
1414
</tr>
1515
</thead>
1616
<tbody>

templates/quasar/types/foo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import type { Item } from "./item";
22

33
export interface {{titleUcFirst}} extends Item {
44
{{#each fields}}
5-
{{#if readonly}}readonly{{/if}} {{{name}}}?: {{#if (compare type "==" "dateTime")}}string{{else if (compare type "==" "integer")}}number{{else if isRelations}}any{{else}}{{{type}}}{{/if}};
5+
{{#if readonly}}readonly{{/if}} {{name}}?: {{#if (compare type "==" "dateTime")}}string{{else if (compare type "==" "integer")}}number{{else if isRelations}}any{{else}}{{type}}{{/if}};
66
{{/each}}
77
}

0 commit comments

Comments
 (0)