mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
chore: applying query params to the global issues filters in the global views (#3464)
* chore: applying filters from the route params to the global issue filters store and Typos * chore: enabled posthog * fix: labels disbaled and loader while creating the label in isse detail and relation modal loader and mutation issue
This commit is contained in:
@@ -23,7 +23,7 @@ export interface IEstimateStore {
|
||||
getProjectActiveEstimateDetails: (projectId: string) => IEstimate | null;
|
||||
// fetch actions
|
||||
fetchProjectEstimates: (workspaceSlug: string, projectId: string) => Promise<IEstimate[]>;
|
||||
fetchWorskpaceEstimates: (workspaceSlug: string) => Promise<IEstimate[]>;
|
||||
fetchWorkspaceEstimates: (workspaceSlug: string) => Promise<IEstimate[]>;
|
||||
// crud actions
|
||||
createEstimate: (workspaceSlug: string, projectId: string, data: IEstimateFormData) => Promise<IEstimate>;
|
||||
updateEstimate: (
|
||||
@@ -56,7 +56,7 @@ export class EstimateStore implements IEstimateStore {
|
||||
activeEstimateDetails: computed,
|
||||
// actions
|
||||
fetchProjectEstimates: action,
|
||||
fetchWorskpaceEstimates: action,
|
||||
fetchWorkspaceEstimates: action,
|
||||
createEstimate: action,
|
||||
updateEstimate: action,
|
||||
deleteEstimate: action,
|
||||
@@ -158,7 +158,7 @@ export class EstimateStore implements IEstimateStore {
|
||||
* @param workspaceSlug
|
||||
* @param projectId
|
||||
*/
|
||||
fetchWorskpaceEstimates = async (workspaceSlug: string) =>
|
||||
fetchWorkspaceEstimates = async (workspaceSlug: string) =>
|
||||
await this.estimateService.getWorkspaceEstimatesList(workspaceSlug).then((response) => {
|
||||
runInAction(() => {
|
||||
response.forEach((estimate) => {
|
||||
|
||||
@@ -162,14 +162,17 @@ export class WorkspaceIssuesFilter extends IssueFilterHelperStore implements IWo
|
||||
) => {
|
||||
try {
|
||||
if (!viewId) throw new Error("View id is required");
|
||||
const issueFilters = this.getIssueFilters(viewId);
|
||||
|
||||
if (isEmpty(this.filters) || isEmpty(this.filters[viewId]) || isEmpty(filters)) return;
|
||||
console.log("issueFilters", issueFilters);
|
||||
|
||||
if (!issueFilters || isEmpty(filters)) return;
|
||||
|
||||
const _filters = {
|
||||
filters: this.filters[viewId].filters as IIssueFilterOptions,
|
||||
displayFilters: this.filters[viewId].displayFilters as IIssueDisplayFilterOptions,
|
||||
displayProperties: this.filters[viewId].displayProperties as IIssueDisplayProperties,
|
||||
kanbanFilters: this.filters[viewId].kanbanFilters as TIssueKanbanFilters,
|
||||
filters: issueFilters.filters as IIssueFilterOptions,
|
||||
displayFilters: issueFilters.displayFilters as IIssueDisplayFilterOptions,
|
||||
displayProperties: issueFilters.displayProperties as IIssueDisplayProperties,
|
||||
kanbanFilters: issueFilters.kanbanFilters as TIssueKanbanFilters,
|
||||
};
|
||||
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user