Skip to content
Snippets Groups Projects
Commit 1a0d9341 authored by Paulina Nogal's avatar Paulina Nogal
Browse files

Change Download PDF to button instead link

parent 8bc6d667
No related branches found
No related tags found
No related merge requests found
......@@ -73,22 +73,17 @@
matTooltipPosition="left">print</i>
Print
</button>
<a
target="_blank"
href="/api/degreeplanpdf?roadmapId={{ planId }}"
mat-button
class="sidenav-link-btn">
<svg
<button mat-menu-item class="sidenav-link-btn" (click)="downloadPdf()">
<svg
alt="Download PDF icon"
matTooltip="Download PDF"
matTooltipPosition="left"
class="material-icons"
style="width:24px;height:24px"
style="width:24px;height:24px;position:relative;top:7px;"
viewBox="0 0 24 24">
<path fill="#0479a8" d="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" />
</svg>
Download PDF
</a>
</button>
<button mat-button class="sidenav-link-btn" (click)="onCreatePlanClick()">
<i
class="material-icons"
......@@ -103,7 +98,6 @@
alt="Add Academic Year icon"
matTooltip="Add academic year"
matTooltipPosition="left"
class="material-icons"
style="width:24px;height:24px"
viewBox="0 0 24 24">
<path
......
......@@ -53,6 +53,12 @@ export class SidenavMenuItemComponent implements OnDestroy {
window.print();
}
public downloadPdf() {
// FIXME
// window.open('/api/degreeplanpdf?roadmapId=' + this.planId);
this.snackBar.open('Not supported yet');
}
public onCreatePlanClick() {
this.dialog
.open(PromptDialogComponent, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment