YARN-8171. [UI2] AM Node link from attempt page should not redirect to new tab. Contributed by Sunil G.
This commit is contained in:
parent
241d985467
commit
034da8fc97
@ -140,4 +140,9 @@ export default DS.Model.extend({
|
|||||||
return this.get("state");
|
return this.get("state");
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
|
masterNodeURL: function() {
|
||||||
|
var addr = encodeURIComponent(this.get("nodeHttpAddress"));
|
||||||
|
return `#/yarn-node/${this.get("nodeId")}/${addr}/info/`;
|
||||||
|
}.property("nodeId", "nodeHttpAddress"),
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
{{#if attempt.nodeHttpAddress}}
|
{{#if attempt.nodeHttpAddress}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>AM Node Web UI</td>
|
<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>
|
</tr>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if attempt.logsLink}}
|
{{#if attempt.logsLink}}
|
||||||
|
Loading…
Reference in New Issue
Block a user