aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-03-21 15:10:43 +0100
committerGitHub <noreply@github.com>2024-03-21 15:10:43 +0100
commita7dfec070a1dda79ade7cfea91b3dc7e74d184a6 (patch)
treee9a3932df8346577c6ea5649b5337bccde509044 /apps
parentc161f0c1446b62ce2407bfd06e1e5d4867df863e (diff)
parent4354b4609cd6140fd7f969ac861ed6a3377d949a (diff)
downloadnextcloud-server-a7dfec070a1dda79ade7cfea91b3dc7e74d184a6.tar.gz
nextcloud-server-a7dfec070a1dda79ade7cfea91b3dc7e74d184a6.zip
Merge pull request #44381 from nextcloud/fix/workflows-engine-groups
fix(workflowengine): Use correct event names to make search for groups work again
Diffstat (limited to 'apps')
-rw-r--r--apps/workflowengine/src/components/Checks/RequestUserGroup.vue21
1 files changed, 15 insertions, 6 deletions
diff --git a/apps/workflowengine/src/components/Checks/RequestUserGroup.vue b/apps/workflowengine/src/components/Checks/RequestUserGroup.vue
index 2b248153aa6..ee774b7939f 100644
--- a/apps/workflowengine/src/components/Checks/RequestUserGroup.vue
+++ b/apps/workflowengine/src/components/Checks/RequestUserGroup.vue
@@ -22,21 +22,26 @@
<template>
<div>
- <NcSelect :value="currentValue"
+ <NcSelect :aria-label-combobox="t('workflowengine', 'Select groups')"
+ :aria-label-listbox="t('workflowengine', 'Groups')"
+ :clearable="false"
:loading="status.isLoading && groups.length === 0"
+ :placeholder="t('workflowengine', 'Type to search for group …')"
:options="groups"
- :clearable="false"
+ :value="currentValue"
label="displayname"
- @search-change="searchAsync"
+ @search="searchAsync"
@input="(value) => $emit('input', value.id)" />
</div>
</template>
<script>
-import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
-import axios from '@nextcloud/axios'
+import { translate as t } from '@nextcloud/l10n'
import { generateOcsUrl } from '@nextcloud/router'
+import axios from '@nextcloud/axios'
+import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
+
const groups = []
const status = {
isLoading: false,
@@ -69,14 +74,18 @@ export default {
},
},
async mounted() {
+ // If empty, load first chunk of groups
if (this.groups.length === 0) {
await this.searchAsync('')
}
- if (this.currentValue === null) {
+ // If a current group is set but not in our list of groups then search for that group
+ if (this.currentValue === null && this.value) {
await this.searchAsync(this.value)
}
},
methods: {
+ t,
+
searchAsync(searchQuery) {
if (this.status.isLoading) {
return