Skip to content

Commit

Permalink
Merge pull request #2449 from opengovern/ui-changes
Browse files Browse the repository at this point in the history
add migrator to first login
  • Loading branch information
mohamadch91 authored Jan 13, 2025
2 parents 128f89c + 2aa8391 commit 41efaaf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions services/web-ui/src/pages/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { ForbiddenAtom, meAtom, notificationAtom } from '../../store'
import { useAuth } from '../../utilities/auth'
import { useAuthApiV1UserInviteCreate } from '../../api/auth.gen'
import Integrations from './Integrations'
import { useComplianceApiV1QueriesSyncList } from '../../api/compliance.gen'

export default function Overview() {

Expand Down Expand Up @@ -91,6 +92,9 @@ export default function Overview() {
// const temp = []
if (res.data == 'CHANGE_REQUIRED') {
setChange(true)
if (me?.email == '[email protected]') {
runSync()
}
}
})
.catch((err) => {
Expand Down Expand Up @@ -170,11 +174,19 @@ export default function Overview() {
setLoadingChange(false)
})
}
const {
isLoading: syncLoading,
isExecuted: syncExecuted,
error: syncError,
sendNow: runSync,
} = useComplianceApiV1QueriesSyncList({}, {}, false)

useEffect(() => {

if (me?.connector_id === 'local') {
PassCheck()
}

}, [me])
const CheckEmail = () => {
if (!userData?.email || userData?.email == '') {
Expand Down

0 comments on commit 41efaaf

Please sign in to comment.