forked from verdnatura/salix-front
fix: refs #7353 rollback
This commit is contained in:
parent
2cb2ce16ef
commit
ed4a4e1e59
|
@ -200,11 +200,6 @@ function sanitizer(params) {
|
|||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
function getLocale(label) {
|
||||
const globalLocale = `globals.params.${label}`;
|
||||
return te(globalLocale) ? t(globalLocale) : t(`params.${label}`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -253,12 +248,7 @@ function getLocale(label) {
|
|||
:removable="!unremovableParams?.includes(chip.label)"
|
||||
@remove="remove(chip.label)"
|
||||
>
|
||||
<slot
|
||||
name="tags"
|
||||
:tag="chip"
|
||||
:format-fn="formatValue"
|
||||
:locale-fn="getLocale"
|
||||
>
|
||||
<slot name="tags" :tag="chip" :format-fn="formatValue">
|
||||
<div class="q-gutter-x-xs">
|
||||
<strong>{{ chip.label }}:</strong>
|
||||
<span>"{{ formatValue(chip.value) }}"</span>
|
||||
|
@ -272,7 +262,6 @@ function getLocale(label) {
|
|||
:tags="customTags"
|
||||
:format-fn="formatValue"
|
||||
:search-fn="search"
|
||||
:locale-fn="getLocale"
|
||||
/>
|
||||
</div>
|
||||
</QItem>
|
||||
|
|
Loading…
Reference in New Issue