forked from github/plane
[WEB-456] chore: display sub issues option added in global view issues (#3712)
* chore: ensure global view issues displays sub-issues by default * chore: sub issue toggle option added in global view issues
This commit is contained in:
parent
ab3c3a6cf9
commit
7464c1090a
@ -320,8 +320,8 @@ export const ISSUE_DISPLAY_FILTERS_BY_LAYOUT: {
|
|||||||
type: [null, "active", "backlog"],
|
type: [null, "active", "backlog"],
|
||||||
},
|
},
|
||||||
extra_options: {
|
extra_options: {
|
||||||
access: false,
|
access: true,
|
||||||
values: [],
|
values: ["sub_issue"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
@ -449,4 +449,4 @@ export const groupReactionEmojis = (reactions: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return _groupedEmojis;
|
return _groupedEmojis;
|
||||||
};
|
};
|
||||||
|
@ -99,8 +99,6 @@ export class WorkspaceIssuesFilter extends IssueFilterHelperStore implements IWo
|
|||||||
filteredParams
|
filteredParams
|
||||||
);
|
);
|
||||||
|
|
||||||
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
|
|
||||||
|
|
||||||
return filteredRouteParams;
|
return filteredRouteParams;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -213,11 +211,6 @@ export class WorkspaceIssuesFilter extends IssueFilterHelperStore implements IWo
|
|||||||
_filters.displayFilters.group_by = "state";
|
_filters.displayFilters.group_by = "state";
|
||||||
updatedDisplayFilters.group_by = "state";
|
updatedDisplayFilters.group_by = "state";
|
||||||
}
|
}
|
||||||
// set sub_issue to false if layout is switched to spreadsheet and sub_issue is true
|
|
||||||
if (_filters.displayFilters.layout === "spreadsheet" && _filters.displayFilters.sub_issue === true) {
|
|
||||||
_filters.displayFilters.sub_issue = false;
|
|
||||||
updatedDisplayFilters.sub_issue = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
Object.keys(updatedDisplayFilters).forEach((_key) => {
|
Object.keys(updatedDisplayFilters).forEach((_key) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user