diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-27 00:55:04 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-03-19 17:35:07 -0700 |
commit | 16fca1c5b8c02ce0800fe105111410229beb705f (patch) | |
tree | b50358895d601f7d76984108927b69f94a8ddb45 | |
parent | a6400846a3a9dfa3a7131a3319d19c2ccfac546d (diff) |
settings: wifi: qml: add 'Forget Network' button
Allow the user to forget a known network in the Settings UI
Bug-AGL: SPEC-2184
Change-Id: I3edec2ae9e23a7cc9a0d87fcecfe9842b6856240
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r-- | app/wifi/Wifi.qml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app/wifi/Wifi.qml b/app/wifi/Wifi.qml index e17b1f5..b4f4485 100644 --- a/app/wifi/Wifi.qml +++ b/app/wifi/Wifi.qml @@ -61,6 +61,7 @@ SettingPage { Column { anchors.left: icon.right anchors.leftMargin: 5 + id: networkName Label { id: networkNameText text: ssid @@ -77,7 +78,19 @@ SettingPage { color: "white" } } - + Column { + anchors.left: networkName.right + anchors.leftMargin: 50 + Button { + visible: sstate === "ready" + || sstate === "online" + text: 'Forget Network' + onClicked: { + console.log("Removing network ", ssid, " (", service, ")") + network.remove(service) + } + } + } onClicked: { if ((sstate === "ready") || sstate === "online") { console.log("Disconnecting from ", ssid, " (", service, ")") |