Browse Source

fix(gui-v2): make attachment drag-n-drop in shared form view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3188/head
Pranav C 2 years ago
parent
commit
b3062130df
  1. 4
      packages/nc-gui-v2/components/cell/attachment/index.vue

4
packages/nc-gui-v2/components/cell/attachment/index.vue

@ -83,13 +83,15 @@ watch(
rowState.value[column.value.title!] = storedFiles.value rowState.value[column.value.title!] = storedFiles.value
}, },
) )
const { isSharedForm } = useSmartsheetStoreOrThrow()
</script> </script>
<template> <template>
<div class="nc-attachment-cell relative flex-1 color-transition flex items-center justify-between gap-1"> <div class="nc-attachment-cell relative flex-1 color-transition flex items-center justify-between gap-1">
<Carousel /> <Carousel />
<template v-if="!isReadonly && !dragging && !!currentCellRef"> <template v-if="isSharedForm || (!isReadonly && !dragging && !!currentCellRef)">
<general-overlay <general-overlay
v-model="isOverDropZone" v-model="isOverDropZone"
inline inline

Loading…
Cancel
Save