Skip to content

Commit

Permalink
fix 'Open IDE' link
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 committed Dec 19, 2019
1 parent fce1fe9 commit 4744a70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@ export class ProjectItemCtrl {

$onInit(): void { }

get workspaceName(): string {
if (!this.workspace) {
return '';
}
return this.cheWorkspace.getWorkspaceDataManager().getName(this.workspace);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
layout-align-xs="start start"
class="che-list-item-details">
<div flex-gt-xs="30"
aria-label="project-item"
aria-label="project-item"
class="che-list-item-name">
<span class="che-xs-header noselect" hide-gt-xs>Name</span>
<span class="che-hover project-item-name">{{projectItemCtrl.project.name}}</span>
Expand All @@ -47,7 +47,7 @@
<a ng-if="projectItemCtrl.hasAction"
uib-tooltip="Open in IDE"
tooltip-append-to-body="true"
ng-href="#/ide/{{projectItemCtrl.workspace.namespace}}/{{projectItemCtrl.workspace.config.name}}">
ng-href="#/ide/{{projectItemCtrl.workspace.namespace}}/{{projectItemCtrl.workspaceName}}">
<span class="fa fa-chevron-circle-right"></span>
</a>
</span>
Expand Down

0 comments on commit 4744a70

Please sign in to comment.