mirror of
https://github.com/plankanban/planka.git
synced 2025-12-25 09:15:00 +03:00
Change user size on card, save card description on click outside, prevent list deletion if any filter is active
This commit is contained in:
@@ -1,9 +1,27 @@
|
||||
import { createSelector } from 'redux-orm';
|
||||
|
||||
import orm from '../orm';
|
||||
import { pathSelector } from './path';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const attachmentWithIdExistsSelector = () =>
|
||||
export const isAnyFilterActiveForCurrentBoardSelector = createSelector(
|
||||
orm,
|
||||
(state) => pathSelector(state).boardId,
|
||||
({ Board }, id) => {
|
||||
if (!id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const boardModel = Board.withId(id);
|
||||
|
||||
if (!boardModel) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return boardModel.filterUsers.exists() || boardModel.filterLabels.exists();
|
||||
},
|
||||
);
|
||||
|
||||
export const isAttachmentWithIdExistsSelector = () =>
|
||||
createSelector(
|
||||
orm,
|
||||
(_, id) => id,
|
||||
|
||||
Reference in New Issue
Block a user