Merge branch 'ASTRA-70' into 'master'

WIP Поправила опечатки

See merge request andrusyakka/urban-couscous!356
This commit is contained in:
Daria Golova
2023-05-11 08:19:13 +00:00
2 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ export default {
{ {
id: 2, id: 2,
change: false, change: false,
name: "Алергологический анамнез", name: "Аллергологический анамнез",
tags: [], tags: [],
}, },
{ {

View File

@@ -27,7 +27,7 @@
@click="invertSorting" @click="invertSorting"
) )
.flex.py-4.w-full.color-grey.text-base.justify-center .flex.py-4.w-full.color-grey.text-base.justify-center
span.opacity-50 {{ `Осмотров: ${protocolsData?.length}` }} span.opacity-50 {{ `Осмотров: ${sortingProtocols?.length}` }}
.flex.flex-col.gap-y-2 .flex.flex-col.gap-y-2
medical-protocol-card( medical-protocol-card(
v-for="protocol in sortingProtocols", :key="protocol.id", v-for="protocol in sortingProtocols", :key="protocol.id",
@@ -91,8 +91,8 @@ export default {
.map((elem) => { .map((elem) => {
return elem?.start.slice(0, 4); return elem?.start.slice(0, 4);
}) })
.sort((first, second) => first - second); .sort((first, second) => second - first);
return [...new Set(years)]; return this.sorting ? [...new Set(years.reverse())] : [...new Set(years)];
}, },
sortingProtocols() { sortingProtocols() {
if (!this.protocolsData) return []; if (!this.protocolsData) return [];