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"],
|
||||
},
|
||||
extra_options: {
|
||||
access: false,
|
||||
values: [],
|
||||
access: true,
|
||||
values: ["sub_issue"],
|
||||
},
|
||||
},
|
||||
list: {
|
||||
@ -449,4 +449,4 @@ export const groupReactionEmojis = (reactions: any) => {
|
||||
}
|
||||
|
||||
return _groupedEmojis;
|
||||
};
|
||||
};
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user