Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Show floating menu only in own profile
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Oct 30, 2024
1 parent 22653c7 commit fd3934a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions domains/grid/components/GridFloatingMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const BOTTOM_MARGIN_MOBILE_PX = 16
const emits = defineEmits<Emits>()
const { isEditingGrid, hasUnsavedGrid, isSavingGrid } =
storeToRefs(useGridStore())
const { isConnected, isMobile } = storeToRefs(useAppStore())
const { isConnected, isMobile, isConnectedUserViewingOwnProfile } =
storeToRefs(useAppStore())
const { formatMessage } = useIntl()
const { showModal } = useModal()
const bottom = ref(
Expand Down Expand Up @@ -137,7 +138,7 @@ onUnmounted(() => {

<template>
<div
v-if="isConnected"
v-if="isConnected && isConnectedUserViewingOwnProfile"
class="fixed right-4 z-50 flex animate-fade-in gap-6 overflow-hidden rounded-full bg-neutral-100 p-3 shadow-neutral-drop-shadow duration-300 ease-in-out sm:bottom-10 sm:right-10 sm:flex-col sm:transition-height lg:right-[calc(50%-540px)]"
:class="{
'h-[64px] w-[320px] sm:h-[320px] sm:w-[64px]': isEditingGrid,
Expand Down

0 comments on commit fd3934a

Please sign in to comment.