mirror of
https://github.com/plankanban/planka.git
synced 2025-08-04 21:15:25 +02:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
parent
d6cb1f6683
commit
b39119ace4
478 changed files with 21226 additions and 19495 deletions
19
client/src/selectors/users.js
Normal file
19
client/src/selectors/users.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { createSelector } from 'redux-orm';
|
||||
|
||||
import orm from '../orm';
|
||||
import { currentUserIdSelector } from './user';
|
||||
|
||||
export const usersSelector = createSelector(orm, ({ User }) =>
|
||||
User.getOrderedUndeletedQuerySet().toRefArray(),
|
||||
);
|
||||
|
||||
export const usersExceptCurrentSelector = createSelector(
|
||||
orm,
|
||||
(state) => currentUserIdSelector(state),
|
||||
({ User }, id) =>
|
||||
User.getOrderedUndeletedQuerySet()
|
||||
.exclude({
|
||||
id,
|
||||
})
|
||||
.toRefArray(),
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue