File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,7 +325,16 @@ const user = {
325325 } )
326326 } )
327327 } ,
328-
328+ UpdateConfiguration ( { commit } ) {
329+ return new Promise ( ( resolve , reject ) => {
330+ api ( 'listLdapConfigurations' ) . then ( response => {
331+ const ldapEnable = ( response . ldapconfigurationresponse . count > 0 )
332+ commit ( 'SET_LDAP' , ldapEnable )
333+ } ) . catch ( error => {
334+ reject ( error )
335+ } )
336+ } )
337+ } ,
329338 SetDomainStore ( { commit } , domainStore ) {
330339 commit ( 'SET_DOMAIN_STORE' , domainStore )
331340 }
Original file line number Diff line number Diff line change @@ -963,6 +963,9 @@ export default {
963963 break
964964 }
965965 }
966+ if ([' addLdapConfiguration' , ' deleteLdapConfiguration' ].includes (action .api )) {
967+ this .$store .dispatch (' UpdateConfiguration' )
968+ }
966969 return false
967970 },
968971 execSubmit (e ) {
You can’t perform that action at this time.
0 commit comments