Skip to content

Commit c7f4d35

Browse files
authored
Merge pull request #954 from DevBuffProject/feature/buttons-logic
Improve UI
2 parents 71fc55b + 5eabd89 commit c7f4d35

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

src/composes/utils/useTimeAgoUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const useTimeAgoUtils = (date) => {
2323
messages: {
2424
justNow: 'Только что',
2525
past: (n) => (n.match(/\d/) ? `${n} назад` : n),
26-
future: (n) => `Unsupported`,
26+
future: () => `Unsupported`,
2727
month: (n) => {
2828
if (n === 1) {
2929
return 'В прошлом месяце'

src/locales/ru.json5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
title: "Позиции",
6666
titleLanguages: "Стэк языков",
6767
titleTechnologies: "Стэк технологий",
68+
informationNotProvided: "Создатель идеи не указал список технологий",
6869
titleAcceptedUsers: 'Уже в команде',
6970
status: {
7071
NONE: "Откликнуться",

src/pages/edit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default defineComponent({
100100
},
101101
{
102102
schema: yup.date().default(() => new Date()),
103-
label: 'День рождение',
103+
label: 'День рождения',
104104
name: 'birthday',
105105
placeholder: t('fields.birthday'),
106106
value: user.value.birthday,

src/pages/idea.vue

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,25 @@
8484
:key="`language-${language}-${specialist.id}`"
8585
>
8686
<AtomicChip
87-
:text="language"
87+
:text="
88+
tDefault(
89+
`commons.languages.${language}`,
90+
language,
91+
true,
92+
)
93+
"
8894
class="mb-2 mr-1"
8995
type="auto"
9096
/>
9197
</div>
9298
</div>
9399
</AtomicLabel>
100+
<AtomicLabel
101+
v-if="languagesForSpecialist(specialist.id).length === 0"
102+
class="mt-4"
103+
:name="t('positions.informationNotProvided')"
104+
>
105+
</AtomicLabel>
94106
<AtomicLabel
95107
v-if="frameworksForSpecialist(specialist.id).length > 0"
96108
:name="t('positions.titleTechnologies')"
@@ -190,7 +202,7 @@ export default defineComponent({
190202
changeStatusIdea,
191203
} = useIdea(props.id)
192204
const { ssoData, getSsoData } = useSso()
193-
const { t } = useI18n('pages.idea')
205+
const { t, tDefault } = useI18n('pages.idea')
194206
const { getUserProfileUrl, getUser, user } = useUser()
195207
196208
const send = (specialistId) => {
@@ -230,6 +242,7 @@ export default defineComponent({
230242
isOwnerIdea,
231243
publishedAgo,
232244
t,
245+
tDefault,
233246
send,
234247
deleteIdeaProcess,
235248
changeStatusIdea,

0 commit comments

Comments
 (0)