Skip to content
Permalink
Browse files
fix(workspace): Fix broken link (#306)
  • Loading branch information
kilchenmann committed Sep 25, 2020
1 parent 1468ee1 commit 52b324db05a6fb62675e43733b1f5bc19f99f29f
Showing with 7 additions and 1 deletion.
  1. +1 −1 src/app/workspace/resource/resource.component.html
  2. +6 −0 src/app/workspace/resource/resource.component.ts
@@ -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>
@@ -8,6 +8,7 @@ import {
Params,
Router
} from '@angular/router';
import { ReadProject } from '@dasch-swiss/dsp-js';
import { Subscription } from 'rxjs';

@Component({
@@ -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.