diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-08-08 15:07:31 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-08-08 15:07:31 +0200 |
commit | 2191bf085a4f80c8b38d17b7b357d06e4c23c9e8 (patch) | |
tree | d29dfbf22e2d0550bbb9b472cb88a0595fc21806 /src-vue | |
parent | 3cab2a7852fdc4663c8c7f4df6a52b831e610e92 (diff) | |
download | FlightCore-chore/update-tauri-to-2-0.tar.gz FlightCore-chore/update-tauri-to-2-0.zip |
chore: Update Tauri to 2.0chore/update-tauri-to-2-0
Diffstat (limited to 'src-vue')
-rw-r--r-- | src-vue/src/plugins/modules/pull_requests.ts | 3 | ||||
-rw-r--r-- | src-vue/src/plugins/store.ts | 2 | ||||
-rw-r--r-- | src-vue/src/utils/ui.ts | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src-vue/src/plugins/modules/pull_requests.ts b/src-vue/src/plugins/modules/pull_requests.ts index 4caec0b0..f3802cec 100644 --- a/src-vue/src/plugins/modules/pull_requests.ts +++ b/src-vue/src/plugins/modules/pull_requests.ts @@ -1,8 +1,9 @@ -import { invoke, shell } from "@tauri-apps/api"; +import { invoke, } from "@tauri-apps/api"; import { PullsApiResponseElement } from "../../../../src-tauri/bindings/PullsApiResponseElement"; import { PullRequestType } from '../../../../src-tauri/bindings/PullRequestType'; import { store } from "../store"; import { showErrorNotification, showNotification } from "../../utils/ui"; +import shell from "@tauri-apps/plugin-shell" interface PullRequestStoreState { searchValue: string, diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index b61ac573..f3948432 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -9,7 +9,7 @@ import { FlightCoreVersion } from "../../../src-tauri/bindings/FlightCoreVersion import { NotificationHandle } from 'element-plus'; import { NorthstarState } from '../utils/NorthstarState'; import { appDir } from '@tauri-apps/api/path'; -import { open } from '@tauri-apps/api/dialog'; +import { open } from '@tauri-apps/plugin-dialog'; import { Store } from 'tauri-plugin-store-api'; import { router } from "../main"; import { ReleaseInfo } from "../../../src-tauri/bindings/ReleaseInfo"; diff --git a/src-vue/src/utils/ui.ts b/src-vue/src/utils/ui.ts index f5183bcc..56f8cfc3 100644 --- a/src-vue/src/utils/ui.ts +++ b/src-vue/src/utils/ui.ts @@ -1,7 +1,8 @@ import { ElNotification, NotificationHandle } from "element-plus"; -import { appWindow, UserAttentionType } from '@tauri-apps/api/window'; +import { getCurrentWebviewWindow, UserAttentionType } from '@tauri-apps/api/webviewWindow'; import { i18n } from "../main"; import { store } from "../plugins/store"; +const appWindow = getCurrentWebviewWindow() /** * Displays content to the user in the form of a notification appearing on screen bottom right. |