diff --git a/package-lock.json b/package-lock.json index 56303af5..b8ce6fa9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -61,6 +61,7 @@ "karma-jasmine-html-reporter": "~1.7.0", "prettier": "^2.7.1", "prettier-eslint": "^15.0.1", + "qs": "^6.11.0", "typescript": "^4.6.4" } }, diff --git a/package.json b/package.json index a845f892..233c8b4b 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "karma-jasmine-html-reporter": "~1.7.0", "prettier": "^2.7.1", "prettier-eslint": "^15.0.1", + "qs": "^6.11.0", "typescript": "^4.6.4" }, "browser": { diff --git a/src/app/component/matrix/matrix.component.css b/src/app/component/matrix/matrix.component.css index fec9027e..34c39e3d 100644 --- a/src/app/component/matrix/matrix.component.css +++ b/src/app/component/matrix/matrix.component.css @@ -29,18 +29,35 @@ font-weight: bold; } +.mat-cell ul.activity-list { + list-style-type: disclosure-closed; +} + +.mat-cell-activity { + margin-bottom: 1em; + position: relative; +} +.mat-cell-activity a.activity-title { + text-decoration: unset; + margin: 0; +} +.mat-cell-activity a::after { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.mat-cell-activity a.activity-title:link { + color: inherit; +} + .table-small-width { width: 5%; max-width: 9%; } -button { - background-color: white; - border: none; - text-align: left; - cursor: pointer; -} - .tags-activity { font-weight: 800; font-style: italic; diff --git a/src/app/component/matrix/matrix.component.html b/src/app/component/matrix/matrix.component.html index 6d0cb47e..9a6e5ae6 100644 --- a/src/app/component/matrix/matrix.component.html +++ b/src/app/component/matrix/matrix.component.html @@ -61,21 +61,25 @@ {{ levels[i] }} - diff --git a/src/app/component/matrix/matrix.component.ts b/src/app/component/matrix/matrix.component.ts index 4b5513a6..b1fddc2c 100644 --- a/src/app/component/matrix/matrix.component.ts +++ b/src/app/component/matrix/matrix.component.ts @@ -6,6 +6,7 @@ import { map, startWith } from 'rxjs/operators'; import { MatTableDataSource } from '@angular/material/table'; import { ymlService } from '../../service/yaml-parser/yaml-parser.service'; import { Router, NavigationExtras } from '@angular/router'; +import { stringify } from "qs"; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; @@ -325,6 +326,6 @@ export class MatrixComponent implements OnInit { activityName: activityName, }, }; - this.router.navigate([this.Routing], navigationExtras); + return `${this.Routing}?${stringify(navigationExtras.queryParams)}`; } }