mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
re enable sub issues toggle in spreadsheet layout (#3779)
This commit is contained in:
parent
3372e21759
commit
18b5115546
@ -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: {
|
||||||
|
@ -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) => {
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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) => {
|
||||||
|
@ -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) => {
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user