Skip to content

Commit 3201bd9

Browse files
wa0x6eChaituVR
andauthored
fix: allow space avatar edition on testnet (#4909)
* fix: allow space avatar edition on testnet * fix: allow space avatar edition on testnet --------- Co-authored-by: Chaitanya <yourchaitu@gmail.com>
1 parent 5c47ef7 commit 3201bd9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/SettingsProfileBlock.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const props = defineProps<{
88
}>();
99
1010
const { form, validationErrors, addRef } = useFormSpaceSettings(props.context);
11-
const { env } = useApp();
1211
1312
const avatarNotReactive = ref(form.value.avatar);
1413
</script>
@@ -24,7 +23,7 @@ const avatarNotReactive = ref(form.value.avatar);
2423
{{ $t('settings.avatar') }}
2524
</LabelInput>
2625
<InputUploadAvatar
27-
:is-view-only="isViewOnly || env === 'demo'"
26+
:is-view-only="isViewOnly"
2827
class="h-[80px]"
2928
@image-uploaded="url => (form.avatar = url)"
3029
@image-remove="() => (form.avatar = '')"
@@ -44,11 +43,11 @@ const avatarNotReactive = ref(form.value.avatar);
4443
<AvatarOverlayEdit
4544
:loading="uploading"
4645
:avatar="form?.avatar"
47-
:is-view-only="isViewOnly || env === 'demo'"
46+
:is-view-only="isViewOnly"
4847
/>
4948
<div
5049
:class="{
51-
'cursor-not-allowed': isViewOnly || env === 'demo'
50+
'cursor-not-allowed': isViewOnly
5251
}"
5352
class="absolute bottom-[2px] right-0 rounded-full bg-skin-heading p-1"
5453
>

0 commit comments

Comments
 (0)