Skip to content

Only show the link for connecting to a WiFI network if wireless is enabled#316

Merged
imobachgs merged 8 commits intomasterfrom
wifi_enabled
Dec 15, 2022
Merged

Only show the link for connecting to a WiFI network if wireless is enabled#316
imobachgs merged 8 commits intomasterfrom
wifi_enabled

Conversation

@teclator
Copy link
Contributor

@teclator teclator commented Nov 17, 2022

Problem

In #292 we added support for configuring a WiFi connection but it shows the link to connect to a network even when wireless is currently not enabled which is not correct at all.

Solution

Do not show the link to connect to a Wireless when it is not enabled.

Testing

  • Added unit test for the backend, the Network.jsx component still lacks of it as there is some problem with the useEffect and maybe waitFor with a callback needs to be added.
  • Tested manually

Screenshots

Wireless Enabled Wireless Disabled
localhost_9090_cockpit_@localhost_d-installer_index html (9) localhost_9090_cockpit_@localhost_d-installer_index html (10)

D-Installer_NetworkSettings

@teclator teclator force-pushed the wifi_enabled branch 3 times, most recently from 21ae657 to e5ff264 Compare November 18, 2022 08:15
@teclator teclator force-pushed the wifi_enabled branch 3 times, most recently from ebc8be8 to a015278 Compare December 15, 2022 10:18
@dgdavid dgdavid self-requested a review December 15, 2022 10:25
@coveralls
Copy link

coveralls commented Dec 15, 2022

Coverage Status

Coverage decreased (-0.04%) to 76.067% when pulling c903775 on wifi_enabled into 91dc744 on master.

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show the link to set up a wireless connection even if there is no network

4 participants