-
onDelete={() => handleDelete(item.id)}
/>
))}
+ {items.length > 4 && (
+
+ )}
>
);
});
diff --git a/client/src/components/CardModal/Attachments/Attachments.module.css b/client/src/components/CardModal/Attachments/Attachments.module.css
new file mode 100644
index 00000000..f81e1ec3
--- /dev/null
+++ b/client/src/components/CardModal/Attachments/Attachments.module.css
@@ -0,0 +1,16 @@
+.toggleButton {
+ background: transparent !important;
+ box-shadow: none !important;
+ color: #6b808c !important;
+ font-weight: normal !important;
+ margin-top: 8px !important;
+ padding: 6px 11px !important;
+ text-align: left !important;
+ text-decoration: underline !important;
+ transition: none;
+}
+
+.toggleButton:hover {
+ background: rgba(9, 30, 66, 0.08) !important;
+ color: #092d42 !important;
+}
diff --git a/client/src/components/CardModal/CardModal.jsx b/client/src/components/CardModal/CardModal.jsx
index 40364af5..7ef4255b 100755
--- a/client/src/components/CardModal/CardModal.jsx
+++ b/client/src/components/CardModal/CardModal.jsx
@@ -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')}
-
+
-
+
{t('common.actions')}
diff --git a/client/src/locales/en/app.js b/client/src/locales/en/app.js
index eb2d68be..6e25c00d 100644
--- a/client/src/locales/en/app.js
+++ b/client/src/locales/en/app.js
@@ -11,6 +11,7 @@ export default {
common: {
account: 'Account',
actions: 'Actions',
+ addAttachment_title: 'Add Attachment',
addComment: 'Add comment',
addMember_title: 'Add Member',
addUser_title: 'Add User',
@@ -77,6 +78,7 @@ export default {
enterTaskDescription: 'Enter task description...',
filterByLabels_title: 'Filter By Labels',
filterByMembers_title: 'Filter By Members',
+ fromComputer_title: 'From Computer',
hours: 'Hours',
invalidCurrentPassword: 'Invalid current password',
labels: 'Labels',
@@ -95,6 +97,8 @@ export default {
organization: 'Organization',
phone: 'Phone',
preferences: 'Preferences',
+ pressPasteShortcutToAddAttachmentFromClipboard:
+ 'Tip: press Ctrl-V (Cmd-V on Mac) to add an attachment from the clipboard.',
projectNotFound_title: 'Project Not Found',
refreshPageToLoadLastDataAndReceiveUpdates:
'<0>Refresh the page0> to load last data
and receive updates',
@@ -166,6 +170,8 @@ export default {
removeFromProject: 'Remove from project',
removeMember: 'Remove member',
save: 'Save',
+ showAllAttachments: 'Show all attachments ({{hidden}} hidden)',
+ showFewerAttachments: 'Show fewer attachments',
start: 'Start',
stop: 'Stop',
subscribe: 'Subscribe',
diff --git a/client/src/locales/ru/app.js b/client/src/locales/ru/app.js
index 8219f827..3ad24e1e 100644
--- a/client/src/locales/ru/app.js
+++ b/client/src/locales/ru/app.js
@@ -15,6 +15,7 @@ export default {
common: {
account: 'Учетная запись',
actions: 'Действия',
+ addAttachment: 'Добавление вложения',
addComment: 'Добавление комментария',
addMember: 'Добавление участника',
addUser: 'Добавление пользователя',
@@ -81,6 +82,7 @@ export default {
enterTaskDescription: 'Введите описание задачи...',
filterByLabels: 'Фильтр по меткам',
filterByMembers: 'Фильтр по участникам',
+ fromComputer: 'С компьютера',
hours: 'Часы',
invalidCurrentPassword: 'Неверный текущий пароль',
labels: 'Метки',
@@ -99,6 +101,8 @@ export default {
organization: 'Организация',
phone: 'Телефон',
preferences: 'Предпочтения',
+ pressPasteShortcutToAddAttachmentFromClipboard:
+ 'Совет: нажмите Ctrl-V (Cmd-V на Mac), чтобы добавить вложение из буфера обмена.',
projectNotFound: 'Доска не найдена',
refreshPageToLoadLastDataAndReceiveUpdates:
'<0>Обновите страницу0>, чтобы загрузить
актуальные данные и получать обновления',
@@ -167,6 +171,8 @@ export default {
removeFromProject: 'Удалить из проекта',
removeMember: 'Удалить участника',
save: 'Сохранить',
+ showAllAttachments: 'Показать все вложения ({{hidden}} скрыто)',
+ showFewerAttachments: 'Показать меньше вложений',
start: 'Начать',
stop: 'Остановить',
subscribe: 'Подписаться',