Skip to content

Commit

Permalink
Merge pull request #2296 from opengovern/ui-changes
Browse files Browse the repository at this point in the history
UI changes
  • Loading branch information
mohamadch91 authored Dec 21, 2024
2 parents dd81af1 + 7709279 commit 6cf19ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,16 @@ export default function IntegrationList({
)
.then((res) => {
const data = res.data
console.log(data?.integration_types)
setResourceTypes(data?.integration_types)
const temp : any = []
data?.integration_types?.map((item: any) => {
temp.push({
label: item?.name,
value: item?.name,
params: item?.params,
})
})
setSelectedResourceType(temp)
})
.catch((err) => {
console.log(err)
Expand Down Expand Up @@ -747,7 +755,7 @@ export default function IntegrationList({
onChange={({ detail }) => {
setSelectedResourceType(detail.selectedOptions)
}}
tokenLimit={2}
tokenLimit={0}
placeholder="Select resource type"
/>
</Modal>
Expand Down
15 changes: 7 additions & 8 deletions services/web-ui/src/pages/Settings/Entitlement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,18 +371,17 @@ export default function SettingsEntitlement() {
axios
.get(`${url}/main/metadata/api/v3/sample/sync/status `, config)
.then((res) => {
if(res?.data?.progress !==1){
// @ts-ignore
if (res?.data?.progress !== 1 && res?.data?.progress !== 0) {
// @ts-ignore
setLoaded('True')
localStorage.setItem('sample', 'true')
setSample('true')
} else {
// @ts-ignore
setLoaded('False')
localStorage.setItem('sample', 'false')
setSample('false')
}
else{
// @ts-ignore
setLoaded('False')
localStorage.setItem('sample', 'false')
setSample('false')
}
// const temp = []
// if (!res.data.items) {
// setLoading(false)
Expand Down

0 comments on commit 6cf19ed

Please sign in to comment.