Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3987,6 +3987,9 @@ function enablePolicyConnections(policyID: string, enabled: boolean) {
const parameters: EnablePolicyConnectionsParams = {policyID, enabled};

API.write(WRITE_COMMANDS.ENABLE_POLICY_CONNECTIONS, parameters, onyxData);
if (enabled) {
navigateWhenEnableFeature(policyID, ROUTES.POLICY_ACCOUNTING.getRoute(policyID));
}
Comment on lines +3990 to +3992

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hayata-suenaga Aren't we not navigating to the feature page for other features? I remember removing this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah really? can you link a PR that will be removing the navigation? 🙇 😮

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the PR: #40369 and this is the discussion from the design team.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like your PR was reverted here, @allroundexperts

do you know why that was reverted?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It caused an issue on iOS. I'll raise the PR again with a fix.

@hayata-suenaga hayata-suenaga May 6, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me know once you raised the PR so that I can see what change you're making 😄

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How you getting on here @allroundexperts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@allroundexperts, you can handle this in your PR. I'm closing this

}

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