Renamed lans, rack and added chart label
diff --git a/views/ngXosViews/diagnostic/src/js/chart_data_service.js b/views/ngXosViews/diagnostic/src/js/chart_data_service.js
index f39a1e2..c74e289 100644
--- a/views/ngXosViews/diagnostic/src/js/chart_data_service.js
+++ b/views/ngXosViews/diagnostic/src/js/chart_data_service.js
@@ -11,16 +11,18 @@
type: 'router',
children: [
{
- name: 'WAN',
+ name: 'WAN-Side',
+ subtitle: 'Virtual Network',
type: 'network',
children: [
{
- name: 'Rack',
+ name: 'Compute Servers',
type: 'rack',
computeNodes: [],
children: [
{
- name: 'LAN',
+ name: 'LAN-Side',
+ subtitle: 'Virtual Networks',
type: 'network',
children: [{
name: 'Subscriber',
diff --git a/views/ngXosViews/diagnostic/src/js/nodeDrawer.js b/views/ngXosViews/diagnostic/src/js/nodeDrawer.js
index 4bb6c98..dcd7f4e 100644
--- a/views/ngXosViews/diagnostic/src/js/nodeDrawer.js
+++ b/views/ngXosViews/diagnostic/src/js/nodeDrawer.js
@@ -23,10 +23,21 @@
nodes.append('text')
.attr({
- 'text-anchor': 'middle'
+ 'text-anchor': 'middle',
+ y: -5,
+ x: 5,
})
.text(d => d.name)
+ nodes.append('text')
+ .attr({
+ 'text-anchor': 'middle',
+ y: 8,
+ x: 5,
+ class: 'small'
+ })
+ .text(d => d.subtitle)
+
nodes.each(function(n){
let currentNode = d3.select(this);
// cicle trouch node to add Tags and Public IP
diff --git a/views/ngXosViews/diagnostic/src/js/subscriber-modal.js b/views/ngXosViews/diagnostic/src/js/subscriber-modal.js
index 74bb8a7..2911733 100644
--- a/views/ngXosViews/diagnostic/src/js/subscriber-modal.js
+++ b/views/ngXosViews/diagnostic/src/js/subscriber-modal.js
@@ -41,6 +41,11 @@
this.formError = null;
});
+ $scope.$watch(() => this.subscriber, () => {
+ this.subscriber.uplink_speed = parseInt(this.subscriber.uplink_speed, 10);
+ this.subscriber.downlink_speed = parseInt(this.subscriber.downlink_speed, 10);
+ });
+
this.close = () => {
this.open = false;
};