mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #44382 from nextcloud/backport/44381/stable28
[stable28] fix(workflowengine): Use correct event names to make search for groups work again
This commit is contained in:
commit
4af56d52d5
3 changed files with 19 additions and 10 deletions
|
|
@ -22,21 +22,26 @@
|
|||
|
||||
<template>
|
||||
<div>
|
||||
<NcSelect :value="currentValue"
|
||||
:loading="status.isLoading && groups.length === 0"
|
||||
:options="groups"
|
||||
<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"
|
||||
: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
|
||||
|
|
|
|||
4
dist/workflowengine-workflowengine.js
vendored
4
dist/workflowengine-workflowengine.js
vendored
File diff suppressed because one or more lines are too long
2
dist/workflowengine-workflowengine.js.map
vendored
2
dist/workflowengine-workflowengine.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue