Skip to content

Commit

Permalink
Networks page: Properly show hotspot interface (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre8244 committed May 28, 2020
1 parent b6968dd commit 1a7bf02
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/system-network/read
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use strict;
use esmith::NetworksDB;
use JSON;

my $ret = {"status" => undef, "configuration" => {'green' => [], 'red' => [] , 'orange' => [], 'blue' => [], 'free' => [], 'other' => [], 'missing' => [] }};
my $ret = {"status" => undef, "configuration" => {'green' => [], 'red' => [] , 'orange' => [], 'blue' => [], 'hotspot' => [], 'free' => [], 'other' => [], 'missing' => [] }};
our $ndb = esmith::NetworksDB->open_ro();

sub is_valid_interface
Expand Down
1 change: 1 addition & 0 deletions ui/public/i18n/language.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"red": "WAN (red)",
"blue": "Guests (blue)",
"orange": "DMZ (orange)",
"hotspot": "Hotspot",
"empty": "Empty (no role)",
"free": "Unassigned",
"missing": "Missing",
Expand Down
4 changes: 3 additions & 1 deletion ui/src/components/system/Network.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,8 @@ export default {
case "orange":
return "fa fa-shield";
case "hotspot":
return "fa fa-wifi";
case "free":
return "fa fa-unlock";
Expand Down Expand Up @@ -2908,6 +2909,7 @@ export default {
red: success.configuration.red,
blue: success.configuration.blue,
orange: success.configuration.orange,
hotspot: success.configuration.hotspot,
other: success.configuration.other,
free: success.configuration.free,
missing: success.configuration.missing
Expand Down
12 changes: 12 additions & 0 deletions ui/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,14 @@ circle {
border-left: 3px solid #ec7a08 !important;
}

.hotspot {
color: #008888;
}

.hotspot-list {
border-left: 3px solid #008888 !important;
}

.transparent {
opacity: 0;
}
Expand Down Expand Up @@ -529,6 +537,10 @@ circle {
border: 2px solid #ec7a08 !important;
}

.border-hotspot {
border: 2px solid #008888 !important;
}

.details-container {
margin-bottom: 0px;
}
Expand Down

0 comments on commit 1a7bf02

Please sign in to comment.