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");
|
||||
}.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}}
|
||||
<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}}
|
||||
|
Loading…
Reference in New Issue
Block a user