Skip to content

Commit bd34ea6

Browse files
authored
chore: show files (#210)
1 parent 554cc7d commit bd34ea6

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

apps/atrium-telegram/app/pages/agreement/[agreementId]/index.vue

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,34 @@
4848
{{ agreement.comment }}
4949
</div>
5050
</Section>
51+
52+
<div v-if="agreement?.files.length" class="flex flex-col gap-2.5">
53+
<div class="flex flex-row justify-between items-center">
54+
<SectionTitle title="Загруженные файлы" />
55+
</div>
56+
57+
<div class="flex flex-col gap-4">
58+
<NuxtLink
59+
v-for="file of agreement.files"
60+
:key="file.id"
61+
:to="file.url"
62+
target="_blank"
63+
>
64+
<ActiveCard>
65+
<div class="flex flex-row gap-2 items-start">
66+
<UIcon
67+
name="i-lucide-file"
68+
class="shrink-0 size-8 text-primary"
69+
/>
70+
71+
<p class="text-base/5 font-semibold">
72+
{{ file.name }}
73+
</p>
74+
</div>
75+
</ActiveCard>
76+
</NuxtLink>
77+
</div>
78+
</div>
5179
</PageContainer>
5280
</template>
5381

apps/atrium-telegram/app/pages/agreement/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
size="xl"
1919
trailing-icon="i-lucide-arrow-down-wide-narrow"
2020
:ui="{
21-
base: 'rounded-lg ring-0',
21+
base: 'rounded-lg font-bold ring-0',
2222
}"
2323
:items="[
2424
{ label: 'По дате заключения (убывание)', value: 'concludedAtDesc' },
@@ -34,7 +34,7 @@
3434
size="xl"
3535
trailing-icon="i-lucide-funnel"
3636
:ui="{
37-
base: 'rounded-lg ring-0',
37+
base: 'rounded-lg font-bold ring-0',
3838
}"
3939
:items="[
4040
{ label: 'Все', value: 'all' },

0 commit comments

Comments
 (0)