mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-17 14:27:18 +00:00
perf: Make LDAP sync import interval optional in settings form
This commit is contained in:
parent
39b43d6eff
commit
1edb374a90
@ -61,7 +61,6 @@ export default {
|
|||||||
helpTip: this.$t('CrontabOfCreateUpdatePage')
|
helpTip: this.$t('CrontabOfCreateUpdatePage')
|
||||||
},
|
},
|
||||||
AUTH_LDAP_SYNC_INTERVAL: {
|
AUTH_LDAP_SYNC_INTERVAL: {
|
||||||
rules: [Required],
|
|
||||||
helpText: this.$t('IntervalOfCreateUpdatePage')
|
helpText: this.$t('IntervalOfCreateUpdatePage')
|
||||||
},
|
},
|
||||||
AUTH_LDAP_SYNC_RECEIVERS: {
|
AUTH_LDAP_SYNC_RECEIVERS: {
|
||||||
@ -78,7 +77,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submitMethod: () => 'patch'
|
submitMethod: () => 'patch',
|
||||||
|
cleanFormValue(value) {
|
||||||
|
if (value['AUTH_LDAP_SYNC_INTERVAL'] === '') {
|
||||||
|
value['AUTH_LDAP_SYNC_INTERVAL'] = null
|
||||||
|
}
|
||||||
|
return value
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user