Skip to content

Commit 0791a12

Browse files
committed
fix(user_ldap): Call config API instead of wizard save action
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 01e495e commit 0791a12

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/user_ldap/src/services/ldapConfigService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export type WizardAction
3131
| 'countGroups'
3232
| 'countInBaseDN'
3333
| 'testLoginName'
34-
| 'save'
3534

3635
/**
3736
*

apps/user_ldap/src/store/configs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { LDAPConfig } from '../models/index.ts'
88
import { loadState } from '@nextcloud/initial-state'
99
import { defineStore } from 'pinia'
1010
import Vue, { computed, ref } from 'vue'
11-
import { callWizard, copyConfig, createConfig, deleteConfig, getConfig } from '../services/ldapConfigService.ts'
11+
import { callWizard, copyConfig, createConfig, deleteConfig, getConfig, updateConfig } from '../services/ldapConfigService.ts'
1212

1313
export const useLDAPConfigsStore = defineStore('ldap-configs', () => {
1414
const ldapConfigs = ref(loadState('user_ldap', 'ldapConfigs') as Record<string, LDAPConfig>)
@@ -31,7 +31,7 @@ export const useLDAPConfigsStore = defineStore('ldap-configs', () => {
3131

3232
;(async () => {
3333
updatingConfig.value++
34-
await callWizard('save', configId, { key: property, val: newValue })
34+
await updateConfig(configId, { [property]: newValue })
3535
updatingConfig.value--
3636

3737
if (postSetHooks[property] !== undefined) {

0 commit comments

Comments
 (0)