diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-04-07 13:40:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 13:40:56 +0200 |
commit | a07c8de752a3193d6e4e80fffeabde06af747fa0 (patch) | |
tree | 366a958b576096bfac989fafed2e66a18677a6e8 /src-vue/src | |
parent | 90e9c11560e0b73be301d276bdd76b000270c5d3 (diff) | |
download | FlightCore-a07c8de752a3193d6e4e80fffeabde06af747fa0.tar.gz FlightCore-a07c8de752a3193d6e4e80fffeabde06af747fa0.zip |
fix: Change enum value casing (#255)
* fix: Chanege enum value casing
as suggested by clippy
* fix: Fix forgotten case change
Diffstat (limited to 'src-vue/src')
-rw-r--r-- | src-vue/src/components/PullRequestsSelector.vue | 4 | ||||
-rw-r--r-- | src-vue/src/plugins/modules/pull_requests.ts | 4 |
2 files changed, 4 insertions, 4 deletions
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; |