re enable sub issues toggle in spreadsheet layout (#3779)

This commit is contained in:
rahulramesha 2024-02-23 18:45:48 +05:30 committed by GitHub
parent 3372e21759
commit 18b5115546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 2 additions and 54 deletions

View File

@ -395,8 +395,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"],
}, },
}, },
gantt_chart: { gantt_chart: {

View File

@ -89,8 +89,6 @@ export class ArchivedIssuesFilter extends IssueFilterHelperStore implements IArc
filteredParams filteredParams
); );
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams; return filteredRouteParams;
} }
@ -183,11 +181,6 @@ export class ArchivedIssuesFilter extends IssueFilterHelperStore implements IArc
_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) => {

View File

@ -90,8 +90,6 @@ export class CycleIssuesFilter extends IssueFilterHelperStore implements ICycleI
filteredParams filteredParams
); );
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams; return filteredRouteParams;
} }
@ -195,12 +193,6 @@ export class CycleIssuesFilter extends IssueFilterHelperStore implements ICycleI
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) => {
set( set(

View File

@ -89,8 +89,6 @@ export class DraftIssuesFilter extends IssueFilterHelperStore implements IDraftI
filteredParams filteredParams
); );
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams; return filteredRouteParams;
} }
@ -179,12 +177,6 @@ export class DraftIssuesFilter extends IssueFilterHelperStore implements IDraftI
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) => {
set( set(

View File

@ -90,8 +90,6 @@ export class ModuleIssuesFilter extends IssueFilterHelperStore implements IModul
filteredParams filteredParams
); );
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams; return filteredRouteParams;
} }
@ -194,12 +192,6 @@ export class ModuleIssuesFilter extends IssueFilterHelperStore implements IModul
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) => {
set( set(

View File

@ -93,8 +93,6 @@ export class ProfileIssuesFilter extends IssueFilterHelperStore implements IProf
filteredParams filteredParams
); );
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams; return filteredRouteParams;
} }
@ -188,11 +186,6 @@ export class ProfileIssuesFilter extends IssueFilterHelperStore implements IProf
_filters.displayFilters.group_by = "priority"; _filters.displayFilters.group_by = "priority";
updatedDisplayFilters.group_by = "priority"; updatedDisplayFilters.group_by = "priority";
} }
// 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) => {

View File

@ -90,8 +90,6 @@ export class ProjectViewIssuesFilter extends IssueFilterHelperStore implements I
filteredParams filteredParams
); );
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams; return filteredRouteParams;
} }
@ -192,11 +190,6 @@ export class ProjectViewIssuesFilter extends IssueFilterHelperStore implements I
_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) => {

View File

@ -89,8 +89,6 @@ export class ProjectIssuesFilter extends IssueFilterHelperStore implements IProj
filteredParams filteredParams
); );
if (userFilters?.displayFilters?.layout === "spreadsheet") filteredRouteParams.sub_issue = false;
return filteredRouteParams; return filteredRouteParams;
} }
@ -191,11 +189,6 @@ export class ProjectIssuesFilter extends IssueFilterHelperStore implements IProj
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) => {