mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-07-07 18:45:09 +00:00
Fix sidebar menu links
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
@for (breadcrumb of getVersionBreadcrumbs(version); track $index) {
|
@for (breadcrumb of getVersionBreadcrumbs(version); track $index) {
|
||||||
<li>
|
<li>
|
||||||
<ng-container *ngIf="breadcrumb.link">
|
<ng-container *ngIf="breadcrumb.link">
|
||||||
<a [href]="breadcrumb.link" target="_blank">{{ breadcrumb.name }}</a>
|
<a (click)="openUrl(breadcrumb.link)" class="link link-hover">{{ breadcrumb.name }}</a>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="!breadcrumb.link">{{ breadcrumb.name }}</ng-container>
|
<ng-container *ngIf="!breadcrumb.link">{{ breadcrumb.name }}</ng-container>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ export class ChartSidebarMenutComponent implements OnInit {
|
|||||||
return breadcrumbs
|
return breadcrumbs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openUrl(url: string) {
|
||||||
|
window.electron.emit.openUrl(url)
|
||||||
|
}
|
||||||
|
|
||||||
joinPaths(...args: string[]) {
|
joinPaths(...args: string[]) {
|
||||||
return args.join('/')
|
return args.join('/')
|
||||||
.replace(/\/+/g, '/')
|
.replace(/\/+/g, '/')
|
||||||
|
|||||||
@@ -226,9 +226,6 @@ export class ChartSidebarComponent implements OnInit {
|
|||||||
this.difficultyDropdown.setValue(this.defaultDifficulty)
|
this.difficultyDropdown.setValue(this.defaultDifficulty)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Opens the proxy link or source folder in the default browser.
|
|
||||||
*/
|
|
||||||
onSourceLinkClicked() {
|
onSourceLinkClicked() {
|
||||||
window.electron.emit.openUrl(driveLink(this.selectedChart!.applicationDriveId))
|
window.electron.emit.openUrl(driveLink(this.selectedChart!.applicationDriveId))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user