aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-tauri/bindings/PullRequestType.ts2
-rw-r--r--src-tauri/src/github/pull_requests.rs8
-rw-r--r--src-vue/src/components/PullRequestsSelector.vue4
-rw-r--r--src-vue/src/plugins/modules/pull_requests.ts4
4 files changed, 9 insertions, 9 deletions
diff --git a/src-tauri/bindings/PullRequestType.ts b/src-tauri/bindings/PullRequestType.ts
index 2d1fd0a8..582f831a 100644
--- a/src-tauri/bindings/PullRequestType.ts
+++ b/src-tauri/bindings/PullRequestType.ts
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-export type PullRequestType = "MODS" | "LAUNCHER"; \ No newline at end of file
+export type PullRequestType = "Mods" | "Launcher"; \ No newline at end of file
diff --git a/src-tauri/src/github/pull_requests.rs b/src-tauri/src/github/pull_requests.rs
index 8fc769f0..a7ac1fd2 100644
--- a/src-tauri/src/github/pull_requests.rs
+++ b/src-tauri/src/github/pull_requests.rs
@@ -60,8 +60,8 @@ struct ArtifactsResponse {
#[derive(Serialize, Deserialize, Debug, Clone, TS)]
#[ts(export)]
pub enum PullRequestType {
- MODS,
- LAUNCHER,
+ Mods,
+ Launcher,
}
/// Parse pull requests from specified URL
@@ -85,8 +85,8 @@ pub async fn get_pull_requests_wrapper(
install_type: PullRequestType,
) -> Result<Vec<PullsApiResponseElement>, String> {
let api_pr_url = match install_type {
- PullRequestType::MODS => PULLS_API_ENDPOINT_MODS,
- PullRequestType::LAUNCHER => PULLS_API_ENDPOINT_LAUNCHER,
+ PullRequestType::Mods => PULLS_API_ENDPOINT_MODS,
+ PullRequestType::Launcher => PULLS_API_ENDPOINT_LAUNCHER,
};
get_pull_requests(api_pr_url.to_string()).await
diff --git a/src-vue/src/components/PullRequestsSelector.vue b/src-vue/src/components/PullRequestsSelector.vue
index 9ddefc7e..a7165cf6 100644
--- a/src-vue/src/components/PullRequestsSelector.vue
+++ b/src-vue/src/components/PullRequestsSelector.vue
@@ -71,10 +71,10 @@ export default defineComponent({
onChange(e: Object) {
const openedCollapseNames = Object.values(e);
if (openedCollapseNames.includes('1') && this.pull_requests_launcher.length === 0) {
- this.getPullRequests('LAUNCHER');
+ this.getPullRequests('Launcher');
}
if (openedCollapseNames.includes('2') && this.pull_requests_mods.length === 0) {
- this.getPullRequests('MODS');
+ this.getPullRequests('Mods');
}
},
async getPullRequests(pull_request_type: PullRequestType) {
diff --git a/src-vue/src/plugins/modules/pull_requests.ts b/src-vue/src/plugins/modules/pull_requests.ts
index 64c85b77..227888f2 100644
--- a/src-vue/src/plugins/modules/pull_requests.ts
+++ b/src-vue/src/plugins/modules/pull_requests.ts
@@ -20,11 +20,11 @@ export const pullRequestModule = {
await invoke<PullsApiResponseElement[]>("get_pull_requests_wrapper", { installType: pull_request_type })
.then((message) => {
switch (pull_request_type) {
- case "MODS":
+ case "Mods":
state.pull_requests_mods = message;
break;
- case "LAUNCHER":
+ case "Launcher":
state.pull_requests_launcher = message;
break;