Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Categories & Tags - Row is not grayed out entirely when disabled offline. #38443

Merged
merged 6 commits into from
Mar 25, 2024
6 changes: 6 additions & 0 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2680,6 +2680,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 @@ -2700,6 +2701,7 @@ function setWorkspaceCategoryEnabled(policyID: string, categoriesToUpdate: Recor
pendingFields: {
enabled: null,
},
pendingAction: null,
};

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

return acc;
Expand Down Expand Up @@ -2930,6 +2933,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 @@ -2954,6 +2958,7 @@ function setWorkspaceTagEnabled(policyID: string, tagsToUpdate: Record<string, {
pendingFields: {
enabled: null,
},
pendingAction: null,
};

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

return acc;
Expand Down
Loading