Skip to content

Commit

Permalink
Merge pull request #38443 from Krishna2323/krishna2323/issue/38262
Browse files Browse the repository at this point in the history
fix: Categories & Tags - Row is not grayed out entirely when disabled offline.
  • Loading branch information
mountiny authored Mar 25, 2024
2 parents 2a9d62f + f602304 commit 1b0fe6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2703,6 +2703,7 @@ function setWorkspaceCategoryEnabled(policyID: string, categoriesToUpdate: Recor
pendingFields: {
enabled: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
},
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
};

return acc;
Expand All @@ -2723,6 +2724,7 @@ function setWorkspaceCategoryEnabled(policyID: string, categoriesToUpdate: Recor
pendingFields: {
enabled: null,
},
pendingAction: null,
};

return acc;
Expand All @@ -2743,6 +2745,7 @@ function setWorkspaceCategoryEnabled(policyID: string, categoriesToUpdate: Recor
pendingFields: {
enabled: null,
},
pendingAction: null,
};

return acc;
Expand Down Expand Up @@ -2953,6 +2956,7 @@ function setWorkspaceTagEnabled(policyID: string, tagsToUpdate: Record<string, {
pendingFields: {
enabled: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
},
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
};

return acc;
Expand All @@ -2977,6 +2981,7 @@ function setWorkspaceTagEnabled(policyID: string, tagsToUpdate: Record<string, {
pendingFields: {
enabled: null,
},
pendingAction: null,
};

return acc;
Expand All @@ -3001,6 +3006,7 @@ function setWorkspaceTagEnabled(policyID: string, tagsToUpdate: Record<string, {
pendingFields: {
enabled: null,
},
pendingAction: null,
};

return acc;
Expand Down

0 comments on commit 1b0fe6d

Please sign in to comment.