feat: show empty states toggle button in the views dropdown (#500)
* feat: show empty states toggle button in views dropdown * refactor: empty state toggle naming convention, feat: hidden groups in section in the kanban board
This commit is contained in:
parent
79249c5c9b
commit
d477c19ad9
5 changed files with 125 additions and 21 deletions
|
|
@ -32,6 +32,8 @@ const useIssuesView = () => {
|
|||
setGroupByProperty,
|
||||
orderBy,
|
||||
setOrderBy,
|
||||
showEmptyGroups,
|
||||
setShowEmptyGroups,
|
||||
filters,
|
||||
setFilters,
|
||||
resetFilterToDefault,
|
||||
|
|
@ -107,6 +109,7 @@ const useIssuesView = () => {
|
|||
);
|
||||
const statesList = getStatesList(states ?? {});
|
||||
const stateIds = statesList.map((state) => state.id);
|
||||
|
||||
let emptyStatesObject: { [key: string]: [] } = {};
|
||||
for (let i = 0; i < stateIds.length; i++) {
|
||||
emptyStatesObject[stateIds[i]] = [];
|
||||
|
|
@ -132,6 +135,8 @@ const useIssuesView = () => {
|
|||
setGroupByProperty,
|
||||
orderBy,
|
||||
setOrderBy,
|
||||
showEmptyGroups,
|
||||
setShowEmptyGroups,
|
||||
filters,
|
||||
setFilters,
|
||||
params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue