Simon Hunt

ONOS-3265: Added navigation button / logic for devices/flows/ports/groups views.

 - just need to create a "devices table" icon.

Change-Id: I3efca7dbb1ebb718416b583b71639763b9f32886
......@@ -23,7 +23,20 @@
}
#ov-device div.ctrl-btns {
width: 240px;
}
.light #ov-device .current-view use {
fill: white;
}
.dark #ov-device .current-view use {
fill: #304860;
}
.light #ov-device .current-view rect {
fill: deepskyblue;
}
.dark #ov-device .current-view rect {
fill: #eee;
}
/* More in generic panel.css */
......
......@@ -9,6 +9,9 @@
ng-click="toggleRefresh()"></div>
<div class="separator"></div>
<div ng-class="{'current-view': !!selId}"
icon icon-id="query" icon-size="36"></div>
<div ng-class="{active: !!selId}"
icon icon-id="flowTable" icon-size="36"
tooltip tt-msg="flowTip"
......
......@@ -23,7 +23,6 @@
}
#ov-flow div.ctrl-btns {
width: 240px;
}
.light #ov-flow .current-view use {
......
......@@ -13,6 +13,11 @@
<div class="separator"></div>
<div class="active"
icon icon-id="query" icon-size="36"
tooltip tt-msg="deviceTip"
ng-click="nav('device')"></div>
<div class="current-view"
icon icon-id="flowTable" icon-size="36"></div>
......
......@@ -37,6 +37,7 @@
fs = _fs_;
tbs = _tbs_;
ns = _ns_;
$scope.deviceTip = 'Show device table';
$scope.portTip = 'Show port view for this device';
$scope.groupTip = 'Show group view for this device';
......
......@@ -23,7 +23,6 @@
}
#ov-group div.ctrl-btns {
width: 240px;
}
.light #ov-group .current-view use {
......
......@@ -30,6 +30,11 @@
<div class="separator"></div>
<div class="active"
icon icon-id="query" icon-size="36"
tooltip tt-msg="deviceTip"
ng-click="nav('device')"></div>
<div class="active"
icon icon-id="flowTable" icon-size="36"
tooltip tt-msg="flowTip"
ng-click="nav('flow')"></div>
......
......@@ -37,6 +37,7 @@
fs = _fs_;
tbs = _tbs_;
ns = _ns_;
$scope.deviceTip = 'Show device table';
$scope.flowTip = 'Show flow view for this device';
$scope.portTip = 'Show port view for this device';
......
......@@ -23,7 +23,6 @@
}
#ov-port div.ctrl-btns {
width: 240px;
}
.light #ov-port .current-view use {
......
......@@ -30,6 +30,11 @@
<div class="separator"></div>
<div class="active"
icon icon-id="query" icon-size="36"
tooltip tt-msg="deviceTip"
ng-click="nav('device')"></div>
<div class="active"
icon icon-id="flowTable" icon-size="36"
tooltip tt-msg="flowTip"
ng-click="nav('flow')"></div>
......
......@@ -37,6 +37,7 @@
fs = _fs_;
tbs = _tbs_;
ns = _ns_;
$scope.deviceTip = 'Show device table';
$scope.flowTip = 'Show flow view for this device';
$scope.groupTip = 'Show group view for this device';
......