[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:
Anmol Singh Bhatia 2024-02-21 17:51:36 +05:30 committed by GitHub
parent ab3c3a6cf9
commit 7464c1090a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 10 deletions

View File

@ -320,8 +320,8 @@ export const ISSUE_DISPLAY_FILTERS_BY_LAYOUT: {
type: [null, "active", "backlog"],
},
extra_options: {
access: false,
values: [],
access: true,
values: ["sub_issue"],
},
},
list: {

View File

@ -99,8 +99,6 @@ export class WorkspaceIssuesFilter extends IssueFilterHelperStore implements IWo
filteredParams
);
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams;
};
@ -213,11 +211,6 @@ export class WorkspaceIssuesFilter extends IssueFilterHelperStore implements IWo
_filters.displayFilters.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(() => {
Object.keys(updatedDisplayFilters).forEach((_key) => {