commit | aea509dfb5e27e97bc4952fa90d24ce96f3ded3c | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Wed Apr 12 14:17:47 2017 -0700 |
committer | Simon Hunt <simon@onlab.us> | Wed Apr 12 23:57:58 2017 +0000 |
tree | 41ee1641db3ea3c503968537deda727773585cb2 | |
parent | 9aeab9231a22f365d4329fc88eda1a8bac365959 [diff] [blame] |
Topo2 - Key Command 'H' to toggel hosts visibility JIRA Tasks; ONOS-6283 Change-Id: Id1b8c00342af799e1d92c84346bb3fe6f6023af6
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2ViewController.js b/web/gui/src/main/webapp/app/view/topo2/topo2ViewController.js index 6c19fe9..190f751 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2ViewController.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2ViewController.js
@@ -87,6 +87,10 @@ flash.flash(verb + ' ' + this.displayName); this.updatePrefState(this.prefs.visible, on); }, + lookupPrefState: function (key) { + // Return 0 if not defined + return ps.getPrefs('topo2_prefs')[key] || 0; + }, updatePrefState: function (key, value) { var state = ps.getPrefs('topo2_prefs'); state[key] = value ? 1 : 0;