summaryrefslogtreecommitdiffstats
path: root/app/server-control/controllers/kvm-controller.html
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-09-20 10:33:04 -0700
committerGunnar Mills <gmills@us.ibm.com>2019-09-30 18:39:51 +0000
commit198ce1ff3900a82ad9e98ee473078a1bb8a2131a (patch)
treeee0ced20b2ef1dfaec44859b6f470d87f3247582 /app/server-control/controllers/kvm-controller.html
parentb8a377b2ebcc120ff3d1072f11759d07a2c7337f (diff)
downloadphosphor-webui-198ce1ff3900a82ad9e98ee473078a1bb8a2131a.tar.gz
phosphor-webui-198ce1ff3900a82ad9e98ee473078a1bb8a2131a.zip
Fix SoL and KVM refresh bug
Clicking the refresh button in the app header on the SoL and KVM pages would fail to reload because the wrong element reference is passed to the contructor after the reload. Angular recommends using directives for any DOM manipulation. - Use the $element ref availble in serial-console.js directive to select DOM element to open the terminal - Switch kvm controller to directive to be able to use element ref in the link function to select DOM element to pass as target Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia7391e42bf335b8c3558d25df15c052db245ee3d
Diffstat (limited to 'app/server-control/controllers/kvm-controller.html')
-rw-r--r--app/server-control/controllers/kvm-controller.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/server-control/controllers/kvm-controller.html b/app/server-control/controllers/kvm-controller.html
index 40e4d97..2b30c99 100644
--- a/app/server-control/controllers/kvm-controller.html
+++ b/app/server-control/controllers/kvm-controller.html
@@ -1,5 +1 @@
-<div id="noVNC_container">
- <div id="noVNC_status_bar">
- <div id="noVNC_left_dummy_elem"></div>
- </div>
-</div>
+<kvm-console></kvm-console> \ No newline at end of file
OpenPOWER on IntegriCloud