Change user size on card, save card description on click outside, prevent list deletion if any filter is active

This commit is contained in:
Maksim Eltyshev
2020-04-30 05:27:46 +05:00
parent a9f2948672
commit 712567ac57
11 changed files with 74 additions and 38 deletions

View File

@@ -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,