YARN-5500. [YARN-3368] ‘Master node' link under application tab is broken. (Akhil P B Tan via Sunil G)

This commit is contained in:
sunilg 2016-10-27 14:19:44 +05:30 committed by Wangda Tan
parent e93f900b55
commit bc273c43ae
2 changed files with 10 additions and 3 deletions

View File

@ -33,6 +33,13 @@ export default Ember.Controller.extend({
routeName: 'yarn-app', routeName: 'yarn-app',
model: appId model: appId
}]; }];
}) }),
amHostHttpAddressFormatted: function() {
var amHostAddress = this.get('model.app.amHostHttpAddress');
if (amHostAddress.indexOf('http://') < 0) {
amHostAddress = 'http://' + amHostAddress;
}
return amHostAddress;
}.property('model.app.amHostHttpAddress')
}); });

View File

@ -172,8 +172,8 @@
<tbody> <tbody>
<tr> <tr>
<td><a href={{model.app.amContainerLogs}}>Link</a></td> <td><a href={{model.app.amContainerLogs}} target="_blank">Link</a></td>
<td><a href={{model.app.amHostHttpAddress}}>Link</a></td> <td><a href={{amHostHttpAddressFormatted}} target="_blank">Link</a></td>
<td>{{model.app.amNodeLabelExpression}}</td> <td>{{model.app.amNodeLabelExpression}}</td>
</tr> </tr>
</tbody> </tbody>