aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2023-05-06 01:50:03 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2023-05-06 01:50:03 +0200
commit7efd2f5c5e9e380ca463d97a54b862da6b96da16 (patch)
treed2c6624e5e350fb04d14144fa25a0a66db51c383 /src-vue/src
parent10616b295eb23c8250a0d874fe05211f73a8ba81 (diff)
parentd15190c1fa16420c44d3c9f4a2b58b0f5826178b (diff)
downloadFlightCore-7efd2f5c5e9e380ca463d97a54b862da6b96da16.tar.gz
FlightCore-7efd2f5c5e9e380ca463d97a54b862da6b96da16.zip
Merge branch 'main' into fix/handle-failed-downloadfix/handle-failed-download
Diffstat (limited to 'src-vue/src')
-rw-r--r--src-vue/src/components/PullRequestsSelector.vue12
1 files changed, 10 insertions, 2 deletions
diff --git a/src-vue/src/components/PullRequestsSelector.vue b/src-vue/src/components/PullRequestsSelector.vue
index ba95624a..585b3e6a 100644
--- a/src-vue/src/components/PullRequestsSelector.vue
+++ b/src-vue/src/components/PullRequestsSelector.vue
@@ -1,7 +1,7 @@
<template>
<div>
<el-collapse @change="onChange">
- <el-collapse-item name="1">
+ <el-collapse-item name="1" @keydown.space="launcherSearchSpace">
<template #title>
Launcher PRs
<el-input class="pr_search_input" v-model="launcherSearch" placeholder="Filter pull requests" @click.stop="() => false"></el-input>
@@ -34,7 +34,7 @@
</div>
</el-collapse-item>
- <el-collapse-item name="2">
+ <el-collapse-item name="2" @keydown.space="modsSearchSpace">
<template #title>
Mods PRs
<el-input class="pr_search_input" v-model="modsSearch" placeholder="Filter pull requests" @click.stop="() => false"></el-input>
@@ -128,6 +128,14 @@ export default defineComponent({
this.getPullRequests('Mods');
}
},
+ launcherSearchSpace(e: KeyboardEvent) {
+ e.preventDefault();
+ this.launcherSearch += ' ';
+ },
+ modsSearchSpace(e: KeyboardEvent) {
+ e.preventDefault();
+ this.modsSearch += ' ';
+ },
async getPullRequests(pull_request_type: PullRequestType) {
this.$store.commit('getPullRequests', pull_request_type);
},