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