commit | c515e6060fa69c71d2428d1de28d48760cdeb340 | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Thu Apr 13 11:17:40 2017 -0700 |
committer | Simon Hunt <simon@onlab.us> | Thu Apr 13 22:13:52 2017 +0000 |
tree | 0401b856a65ede08330d5004cc90f4cbef9f4e38 | |
parent | 914acb8bfb750fc460d2e318c45f93cb62283dad [diff] [blame] |
Topo2 - Show the mastership when selecting an instance panel JIRA Tasks; ONOS-6292 Change-Id: If4e353495138e606c60430547d01f278b062f372
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Device.js b/web/gui/src/main/webapp/app/view/topo2/topo2Device.js index fadcd93..6eb5704 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2Device.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2Device.js
@@ -81,6 +81,12 @@ detailsPanel.updateDetails(id, nodeType); detailsPanel.show(); }, + displayMastership: function () { + var id = this.mastershipService.mastership(), + suppress = id ? this.get('master') !== id : false; + + this.set({ mastership: suppress }); + }, onExit: function () { var node = this.el; node.select('use')