X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Flaunchpad_card%2FlaunchpadCardMgmtInterfaces.jsx;h=35f9caa3b4ca01a635d1612acf69c46bd42bb745;hp=782e99f4bb8e93860f2ea1ad37a1f93f99a3815b;hb=47f1c190e7bec1588bbf094107b2641363ad36e2;hpb=e29efc315df33d546237e270470916e26df391d6 diff --git a/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardMgmtInterfaces.jsx b/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardMgmtInterfaces.jsx index 782e99f4b..35f9caa3b 100644 --- a/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardMgmtInterfaces.jsx +++ b/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardMgmtInterfaces.jsx @@ -19,6 +19,8 @@ import React from 'react'; import Loader from 'widgets/loading-indicator/loadingIndicator.jsx'; +import LaunchpadFleetStore from '../launchpadFleetStore.js'; + export default class managementInterfaces extends React.Component { constructor(props) { @@ -27,11 +29,18 @@ export default class managementInterfaces extends React.Component { componentWillReceiveProps(nextProps) { } + + openConsole = (url, event) => { + event.preventDefault(); + LaunchpadFleetStore.getVDUConsoleLink(url); + } render() { + let self = this; let dashboard_html; let console_html; let isDisplayed = this.props.display; let status; + let notice; let applicationDashboards = this.props.interfaces.sort(function(a,b) { try { if ((a["short-name"] + '-' + a.id.substr(0,4)) > (b["short-name"] + '-' + b.id.substr(0,4))) { @@ -72,17 +81,19 @@ export default class managementInterfaces extends React.Component { if(consoleLinks && consoleLinks.length > 0){ status = consoleLinks.map(function(i, index) { - let consoleLink = i["console-url"] ? 'Open VM Console' : 'None'; + let consoleLink = i["console-url"] ? 'Obtain Token And Open VM Console' : 'None'; return ( -
  • {i["name"] + '-' + i.id.substr(0,4)}

    {consoleLink}
  • +
  • {i["name"] + '-' + i.id.substr(0,4)}

    {consoleLink} *
  • ) }); + notice =
  • * If a separate browser window does not open, please check if the popup was blocked and allow it.
  • } else { status =
  • No VDU Console Links have been specified.
  • } console_html = ( );