Skip to content

Commit

Permalink
fix: Import correct module
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Mar 1, 2025
1 parent dc425f4 commit 98906d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src-vue/src/plugins/modules/pull_requests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { invoke } from "@tauri-apps/api/core";
import { open } from '@tauri-apps/plugin-shell';
import { PullsApiResponseElement } from "../../../../src-tauri/bindings/PullsApiResponseElement";
import { PullRequestType } from '../../../../src-tauri/bindings/PullRequestType';
import { store } from "../store";
Expand Down Expand Up @@ -40,15 +41,15 @@ export const pullRequestModule = {
await invoke<string>("get_launcher_download_link", { commitSha: pull_request.head.sha })
.then((url) => {
// Open URL in default HTTPS handler (i.e. default browser)
shell.open(url);
open(url);
})
.catch((error) => {
showErrorNotification(error);
});
},
async downloadModsPR(_state: PullRequestStoreState, pull_request: PullsApiResponseElement) {
let url = `https://github.com/${pull_request.head.repo.full_name}/archive/refs/heads/${pull_request.head.ref}.zip`
shell.open(url);
open(url);
},
async installLauncherPR(_state: PullRequestStoreState, pull_request: PullsApiResponseElement) {
// Send notification telling the user to wait for the process to finish
Expand Down

0 comments on commit 98906d2

Please sign in to comment.