Skip to content

Commit

Permalink
add redirect when policy connection is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Jun 4, 2024
1 parent df03f27 commit 69aae55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3273,6 +3273,10 @@ function enablePolicyConnections(policyID: string, enabled: boolean) {
const parameters: EnablePolicyConnectionsParams = {policyID, enabled};

API.write(WRITE_COMMANDS.ENABLE_POLICY_CONNECTIONS, parameters, onyxData);

if (enabled && getIsNarrowLayout()) {
navigateWhenEnableFeature(policyID);
}
}

function enablePolicyDistanceRates(policyID: string, enabled: boolean) {
Expand Down

0 comments on commit 69aae55

Please sign in to comment.