Skip to content

Commit

Permalink
fix(workspace): Fix broken link (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilchenmann committed Sep 25, 2020
1 parent 1468ee1 commit 52b324d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/workspace/resource/resource.component.html
Expand Up @@ -3,5 +3,5 @@
Back
</button>
<div class="content large middle">
<dsp-resource-view [iri]="resourceIri"></dsp-resource-view>
<dsp-resource-view [iri]="resourceIri" (openProject)="openProject($event)"></dsp-resource-view>
</div>
6 changes: 6 additions & 0 deletions src/app/workspace/resource/resource.component.ts
Expand Up @@ -8,6 +8,7 @@ import {
Params,
Router
} from '@angular/router';
import { ReadProject } from '@dasch-swiss/dsp-js';
import { Subscription } from 'rxjs';

@Component({
Expand Down Expand Up @@ -75,4 +76,9 @@ export class ResourceComponent implements OnInit, OnDestroy {
goBack() {
this._location.back();
}

// open project in new tab
openProject(project: ReadProject){
window.open('/project/' + project.shortcode, "_blank");
}
}

0 comments on commit 52b324d

Please sign in to comment.