diff --git a/src/components/sectionList/listActions/DefaultListActions.tsx b/src/components/sectionList/listActions/DefaultListActions.tsx index 0ac5cc08..5bff8796 100644 --- a/src/components/sectionList/listActions/DefaultListActions.tsx +++ b/src/components/sectionList/listActions/DefaultListActions.tsx @@ -22,6 +22,7 @@ export const DefaultListActions = ({ const deletable = canDeleteModel(model) const editable = canEditModel(model) + const shareable = schema.shareable return ( @@ -30,6 +31,7 @@ export const DefaultListActions = ({ deletable={deletable} editable={editable} translatable={schema.translatable} + shareable={shareable} model={model} onShowDetailsClick={() => onShowDetailsClick(model)} onOpenSharingClick={() => onOpenSharingClick(model.id)} diff --git a/src/components/sectionList/listActions/SectionListActions.tsx b/src/components/sectionList/listActions/SectionListActions.tsx index 7d8be85e..28c8f230 100644 --- a/src/components/sectionList/listActions/SectionListActions.tsx +++ b/src/components/sectionList/listActions/SectionListActions.tsx @@ -39,6 +39,7 @@ type ActionMoreProps = { deletable: boolean editable: boolean translatable: boolean + shareable: boolean model: BaseListModel onShowDetailsClick: () => void onOpenSharingClick: () => void @@ -49,6 +50,7 @@ export const ActionMore = ({ deletable, editable, translatable, + shareable, model, onOpenSharingClick, onShowDetailsClick, @@ -99,21 +101,23 @@ export const ActionMore = ({ href={href} /> - - } - onClick={() => { - onOpenSharingClick() - setOpen(false) - }} - /> - + {shareable && ( + + } + onClick={() => { + onOpenSharingClick() + setOpen(false) + }} + /> + + )} {translatable && (