1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-22 14:49:43 +02:00

Add attachment popup, hide attachments if more than 4

This commit is contained in:
Maksim Eltyshev 2020-04-29 23:55:16 +05:00
parent 844b3ab8f1
commit a9f2948672
8 changed files with 134 additions and 27 deletions

View file

@ -9,8 +9,8 @@ import NameField from './NameField';
import EditDescription from './EditDescription';
import Tasks from './Tasks';
import Attachments from './Attachments';
import AddAttachment from './AddAttachment';
import AddAttachmentZone from './AddAttachmentZone';
import AddAttachmentPopup from './AddAttachmentPopup';
import Actions from './Actions';
import User from '../User';
import Label from '../Label';
@ -337,12 +337,12 @@ const CardModal = React.memo(
{t('common.timer')}
</Button>
</EditTimerPopup>
<AddAttachment onCreate={onAttachmentCreate}>
<AddAttachmentPopup onCreate={onAttachmentCreate}>
<Button fluid className={styles.actionButton}>
<Icon name="attach" className={styles.actionIcon} />
{t('common.attachment')}
</Button>
</AddAttachment>
</AddAttachmentPopup>
</div>
<div className={styles.actions}>
<span className={styles.actionsTitle}>{t('common.actions')}</span>