Refactor: Disallow TS on Host/Container Networks#2040
Conversation
WalkthroughThe changes simplify how the Changes
Possibly related PRs
Poem
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php (2)
1555-1555: Improve the checkbox state update inshowSubnet.The current implementation uses jQuery's
.click()on the switch button background element to update the visual state. Consider using the more direct.switchButton('option', 'checked', false)method instead, which is the recommended way to programmatically update a jQuery UI switch button.- $('#contTailscale').siblings('.switch-button-background').click(); + $('#contTailscale').switchButton('option', 'checked', false);
1716-1716: Simplify the checkbox state update inshowTailscale.The code directly sets the checkbox's
checkedproperty tofalse. This is a cleaner approach compared to the previous chained calls, but it should be accompanied by a visual update of the switch button.Consider adding the visual update:
$('#contTailscale').prop('checked',false); + $('#contTailscale').switchButton('option', 'checked', false);
Summary by CodeRabbit