Merge pull request #59397 from nextcloud/backport/59365/stable33

This commit is contained in:
Kate 2026-04-20 21:32:28 +02:00 committed by GitHub
commit 9efd4880ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 4 deletions

View file

@ -20,9 +20,10 @@ const props = defineProps<{
watch(() => props.configuration, () => {
for (const key in props.configuration) {
if (!(key in modelValue.value)) {
modelValue.value[key] = props.configuration[key]?.type === ConfigurationType.Boolean
modelValue.value[key] = props.configuration[key]?.defaultValue ?? (props.configuration[key]?.type === ConfigurationType.Boolean
? false
: ''
)
}
}
}, { immediate: true })

View file

@ -21,6 +21,9 @@ export const ConfigurationType = Object.freeze({
export const ConfigurationFlag = Object.freeze({
None: 0,
/**
* Indicates that the configuration option is optional and can be left empty ("not required")
*/
Optional: 1,
UserProvided: 2,
Hidden: 4,
@ -94,6 +97,11 @@ export interface IConfigurationOption {
* Optional tooltip for the configuration option
*/
tooltip?: string
/**
* Default value for the configuration option.
*/
defaultValue?: string | boolean
}
export interface IAuthMechanism {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long