Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions components/profile/create/stages/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

<!-- bio -->
<NeoField
ref="bioField"
:label="`Short Bio`"
required
:error="!form.description"
Expand All @@ -33,6 +34,19 @@
has-counter
counter-class="mt-3"
:placeholder="'introduce yourself in a few words'" />
<template #message>
<div>
<p
v-if="bioMessage"
class="o-field__message o-field__message-danger">
{{ bioMessage }}
</p>
<div class="flex gap-2 items-center capitalize text-k-grey !pt-2">
<NeoIcon icon="markdown" pack="fab" />
<span>{{ $t('markdownSupported') }} </span>
</div>
</div>
</template>
</NeoField>

<!-- profile picture -->
Expand Down Expand Up @@ -120,6 +134,10 @@ const props = defineProps<{
const profile = inject<{ userProfile: Ref<Profile>; hasProfile: Ref<boolean> }>(
'userProfile',
)

const bioField = ref()
const bioMessage = computed(() => bioField.value?.$data?.newMessage)

const userProfile = computed(() => profile?.userProfile.value)
const substrateAddress = computed(() => toSubstrateAddress(accountId.value))

Expand Down
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scheduled": "Scheduled",
"supply": "Supply",
"artist": "Artist",
"markdownSupported": "Markdown supported",
"why": "Why",
"goBack": "Go Back",
"status": "Status",
Expand Down