YARN-8171. [UI2] AM Node link from attempt page should not redirect to new tab. Contributed by Sunil G.

This commit is contained in:
Rohith Sharma K S 2018-04-18 13:33:59 +05:30
parent 241d985467
commit 034da8fc97
2 changed files with 6 additions and 1 deletions

View File

@ -140,4 +140,9 @@ export default DS.Model.extend({
return this.get("state");
}.property(),
masterNodeURL: function() {
var addr = encodeURIComponent(this.get("nodeHttpAddress"));
return `#/yarn-node/${this.get("nodeId")}/${addr}/info/`;
}.property("nodeId", "nodeHttpAddress"),
});

View File

@ -53,7 +53,7 @@
{{#if attempt.nodeHttpAddress}}
<tr>
<td>AM Node Web UI</td>
<td title="{{attempt.nodeHttpAddress}}"><a href="{{prepend-protocol attempt.nodeHttpAddress}}" target="_blank">{{attempt.nodeHttpAddress}}</a></td>
<td title="{{attempt.nodeHttpAddress}}"><a href="{{attempt.masterNodeURL}}">{{attempt.nodeHttpAddress}}</a></td>
</tr>
{{/if}}
{{#if attempt.logsLink}}