Skip to content

Commit

Permalink
Merge pull request #713 from Support-pl/dev-pl
Browse files Browse the repository at this point in the history
dev pl
  • Loading branch information
639852 authored Jul 17, 2024
2 parents 63bd244 + 03db8a9 commit 54e21ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/components/services/custom/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,15 @@ export default {
return sum + addon.price * ((period >= 1) ? period : 1 / period)
}, 0
)
const description = product.meta.description.replace(
/[\wА-ЯЁа-яё \-_+]{1,};/,
'<span style="font-weight: 700">$&</span>'
)

return {
...product,
price: +(price * this.currency.rate).toFixed(2)
price: +(price * this.currency.rate).toFixed(2),
meta: { ...product.meta, description }
}
},
resources () {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
:max="getMax(resource)"
:step="getStep(resource)"
:value="filters[key].at(0)"
@update:value="emits('update:filter', key, [$event, resource.at(-1)])"
@update:value="emits('update:filter', key, [$event, filters[key].at(-1)])"
/>
-
<a-input-number
Expand All @@ -70,7 +70,7 @@
:max="getMax(resource)"
:step="getStep(resource)"
:value="filters[key].at(-1)"
@update:value="emits('update:filter', key, [resource.at(0), $event])"
@update:value="emits('update:filter', key, [filters[key].at(0), $event])"
/>
</template>
</a-col>
Expand Down

0 comments on commit 54e21ee

Please sign in to comment.