Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-3089 | WEB-3098] chore: project store and empty state updated (#6373)

Anmol Singh Bhatia7430ccf9a81f
diff --git a/web/core/constants/empty-state.ts b/web/core/constants/empty-state.ts
index 9545b57c90..2ec4cb417c 100644
--- a/web/core/constants/empty-state.ts
+++ b/web/core/constants/empty-state.ts
@@ -195,7 +195,7 @@ const emptyStateDetails = {
text: "Create an initiative",
},
accessType: "workspace",
- access: [EUserPermissions.ADMIN],
+ access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
},
[EmptyStateType.WORKSPACE_INITIATIVES_EMPTY_SEARCH]: {
key: EmptyStateType.WORKSPACE_INITIATIVES_EMPTY_SEARCH,
diff --git a/web/core/store/project/project.store.ts b/web/core/store/project/project.store.ts
index e32c189546..119cb01b2b 100644
--- a/web/core/store/project/project.store.ts
+++ b/web/core/store/project/project.store.ts
@@ -230,7 +230,7 @@ export class ProjectStore implements IProjectStore {
};
setLastCollapsibleAction = (section: ProjectOverviewCollapsible) => {
- this.openCollapsibleSection = [section];
+ this.openCollapsibleSection = [...this.openCollapsibleSection, section];
};
toggleOpenCollapsibleSection = (section: ProjectOverviewCollapsible) => {