Showing FQDN link to Horizon
Closes-bug: #1497467 Change-Id: Ib2b90b540babad1d4958127e5413174a9e194e91
This commit is contained in:
parent
ee1492c306
commit
4e77fce91f
@ -147,7 +147,9 @@ function(_, i18n, $, React, utils, models, dispatcher, dialogs, componentMixins,
|
|||||||
var HorizonBlock = React.createClass({
|
var HorizonBlock = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
var cluster = this.props.cluster,
|
var cluster = this.props.cluster,
|
||||||
horizonLinkProtocol = cluster.get('settings').get('public_ssl.horizon.value') ? 'https://' : 'http://';
|
isSecureProtocolUsed = cluster.get('settings').get('public_ssl.horizon.value'),
|
||||||
|
ipValue = 'http://' + cluster.get('networkConfiguration').get('public_vip'),
|
||||||
|
fqdnValue = 'https://' + cluster.get('settings').get('public_ssl.hostname.value');
|
||||||
return (
|
return (
|
||||||
<div className='row plugins-block'>
|
<div className='row plugins-block'>
|
||||||
<div className='col-xs-12 plugin-entry horizon'>
|
<div className='col-xs-12 plugin-entry horizon'>
|
||||||
@ -156,7 +158,7 @@ function(_, i18n, $, React, utils, models, dispatcher, dialogs, componentMixins,
|
|||||||
<a
|
<a
|
||||||
className='btn btn-success'
|
className='btn btn-success'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
href={horizonLinkProtocol + cluster.get('networkConfiguration').get('public_vip')}
|
href={isSecureProtocolUsed ? fqdnValue : ipValue}
|
||||||
>
|
>
|
||||||
{i18n(namespace + 'go_to_horizon')}
|
{i18n(namespace + 'go_to_horizon')}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user