Skip to content

Commit

Permalink
fix: allow space avatar edition on testnet (#4909)
Browse files Browse the repository at this point in the history
* fix: allow space avatar edition on testnet

* fix: allow space avatar edition on testnet

---------

Co-authored-by: Chaitanya <[email protected]>
  • Loading branch information
wa0x6e and ChaituVR authored Oct 9, 2024
1 parent 5c47ef7 commit 3201bd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/SettingsProfileBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const props = defineProps<{
}>();
const { form, validationErrors, addRef } = useFormSpaceSettings(props.context);
const { env } = useApp();
const avatarNotReactive = ref(form.value.avatar);
</script>
Expand All @@ -24,7 +23,7 @@ const avatarNotReactive = ref(form.value.avatar);
{{ $t('settings.avatar') }}
</LabelInput>
<InputUploadAvatar
:is-view-only="isViewOnly || env === 'demo'"
:is-view-only="isViewOnly"
class="h-[80px]"
@image-uploaded="url => (form.avatar = url)"
@image-remove="() => (form.avatar = '')"
Expand All @@ -44,11 +43,11 @@ const avatarNotReactive = ref(form.value.avatar);
<AvatarOverlayEdit
:loading="uploading"
:avatar="form?.avatar"
:is-view-only="isViewOnly || env === 'demo'"
:is-view-only="isViewOnly"
/>
<div
:class="{
'cursor-not-allowed': isViewOnly || env === 'demo'
'cursor-not-allowed': isViewOnly
}"
class="absolute bottom-[2px] right-0 rounded-full bg-skin-heading p-1"
>
Expand Down

0 comments on commit 3201bd9

Please sign in to comment.