Attachments (#2716)

* create attachment site

* add deletion

* - fix person create attachment

* - add presentation type
- add some more file endings
- various fixes
This commit is contained in:
brendanlaschke
2023-11-29 16:58:58 +01:00
committed by GitHub
parent d50cf5291a
commit 7e454d2013
15 changed files with 654 additions and 14 deletions

View File

@ -36,6 +36,7 @@ export {
IconCurrencyDollar,
IconDatabase,
IconDotsVertical,
IconDownload,
IconEye,
IconEyeOff,
IconFileCheck,
@ -64,6 +65,7 @@ export {
IconMouse2,
IconNotes,
IconNumbers,
IconPaperclip,
IconPencil,
IconPhone,
IconPlug,

View File

@ -1,5 +1,6 @@
import styled from '@emotion/styled';
import { Attachments } from '@/activities/files/components/Attachments';
import { Notes } from '@/activities/notes/components/Notes';
import { EntityTasks } from '@/activities/tasks/components/EntityTasks';
import { Timeline } from '@/activities/timeline/components/Timeline';
@ -8,6 +9,7 @@ import {
IconCheckbox,
IconMail,
IconNotes,
IconPaperclip,
IconTimelineEvent,
} from '@/ui/display/icon';
import { TabList } from '@/ui/layout/tab/components/TabList';
@ -72,6 +74,13 @@ export const ShowPageRightContainer = ({
hide: !notes,
disabled: entity.type === 'Custom',
},
{
id: 'files',
title: 'Files',
Icon: IconPaperclip,
hide: !notes,
disabled: entity.type === 'Custom',
},
{
id: 'emails',
title: 'Emails',
@ -94,6 +103,7 @@ export const ShowPageRightContainer = ({
{activeTabId === 'timeline' && <Timeline entity={entity} />}
{activeTabId === 'tasks' && <EntityTasks entity={entity} />}
{activeTabId === 'notes' && <Notes entity={entity} />}
{activeTabId === 'files' && <Attachments targetableEntity={entity} />}
</StyledShowPageRightContainer>
);
};