Skip to content

Commit

Permalink
Fix: Ncj view readme open it online (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Oct 1, 2018
1 parent 7500514 commit d609624
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unique windows show() nul pointer exception [\#1644](https://github.com/Azure/BatchExplorer/issues/1644)
* Reimage node is calling reboot [\#1646](https://github.com/Azure/BatchExplorer/issues/1646)
* Error loading metrics create null pointer exception [\#1648](https://github.com/Azure/BatchExplorer/issues/1648)
* View readme of NCJ application not working [\#1652](https://github.com/Azure/BatchExplorer/issues/1652)
* Cloning of Batch Pools does not work [\#1650](https://github.com/Azure/BatchExplorer/issues/1650)

# 0.18.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export class ChooseActionComponent implements OnInit, OnDestroy {
}

@autobind()
public openLink(link: string) {
public openReadme() {
const link = `https://github.com/Azure/BatchExplorer-data/tree/master/ncj/${this.application.id}`;
this.electronShell.openExternal(link, { activate: true });
}

Expand Down
5 changes: 3 additions & 2 deletions app/components/market/application-action/choose-action.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ <h1>
<span>Action selection for
<span [title]="application.description">{{application?.name}}</span>
</span>
<span>(
<a (click)="openLink(application?.readme)" href="javascript:void(0)">view readme</a>)</span>
<span>
(<bl-clickable (do)="openReadme()" href="javascript:void(0)">view readme</bl-clickable>)
</span>
</h1>
<div class="actions">
<bl-card *ngFor="let action of actions;trackBy: trackAction" class="action">
Expand Down

0 comments on commit d609624

Please sign in to comment.