1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

chore: Add missing things

This commit is contained in:
Maksim Eltyshev 2025-06-02 19:44:08 +02:00
parent e0374f30db
commit a2495b664e
4 changed files with 9 additions and 14 deletions

View file

@ -13,7 +13,6 @@
"@gravity-ui/markdown-editor": "^15.11.0",
"@gravity-ui/uikit": "^7.11.0",
"@juggle/resize-observer": "^3.4.0",
"@types/papaparse": "^5.3.16",
"@vitejs/plugin-react": "^4.4.1",
"browserslist-to-esbuild": "^2.1.1",
"classnames": "^2.5.1",
@ -4748,6 +4747,7 @@
"version": "22.15.17",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.17.tgz",
"integrity": "sha512-wIX2aSZL5FE+MR0JlvF87BNVrtFWf6AE6rxSE9X7OwnVvoyCQjpzSRJ+M87se/4QCkCiebQAqrJ0y6fwIyi7nw==",
"devOptional": true,
"dependencies": {
"undici-types": "~6.21.0"
}
@ -4758,15 +4758,6 @@
"integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==",
"dev": true
},
"node_modules/@types/papaparse": {
"version": "5.3.16",
"resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.3.16.tgz",
"integrity": "sha512-T3VuKMC2H0lgsjI9buTB3uuKj3EMD2eap1MOuEQuBQ44EnDx/IkGhU6EwiTf9zG3za4SKlmwKAImdDKdNnCsXg==",
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/prop-types": {
"version": "15.7.14",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz",
@ -14738,7 +14729,8 @@
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"devOptional": true
},
"node_modules/unicode-canonical-property-names-ecmascript": {
"version": "2.0.1",

View file

@ -84,7 +84,6 @@
"@gravity-ui/markdown-editor": "^15.11.0",
"@gravity-ui/uikit": "^7.11.0",
"@juggle/resize-observer": "^3.4.0",
"@types/papaparse": "^5.3.16",
"@vitejs/plugin-react": "^4.4.1",
"browserslist-to-esbuild": "^2.1.1",
"classnames": "^2.5.1",

View file

@ -141,7 +141,7 @@ const ActionsStep = React.memo(({ onClose }) => {
</Menu.Item>
{withTrashEmptier && (
<>
{(withSubscribe || withCustomFieldGroups) && <hr className={styles.divider} />}
<hr className={styles.divider} />
<Menu.Item className={styles.menuItem} onClick={handleEmptyTrashClick}>
<Icon name="trash alternate outline" className={styles.menuItemIcon} />
{t('action.emptyTrash', {
@ -151,7 +151,7 @@ const ActionsStep = React.memo(({ onClose }) => {
</>
)}
<>
{(withSubscribe || withTrashEmptier) && <hr className={styles.divider} />}
<hr className={styles.divider} />
{[BoardContexts.BOARD, BoardContexts.ARCHIVE, BoardContexts.TRASH].map((context) => (
<Menu.Item
key={context}

View file

@ -41,6 +41,10 @@ export const isCurrentModalAvailableForCurrentUser = createSelector(
return boardModel.project.hasManagerWithUserId(currentUserId);
}
case ModalTypes.BOARD_ACTIVITIES: {
const boardModel = Board.withId(currentModal.params.id);
return !!boardModel && boardModel.isAvailableForUser(currentUserModel);
}
default:
return true;
}