Skip to content

Commit

Permalink
ITEM-328 AJOUT Statut Item
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed Oct 31, 2024
1 parent 21342b3 commit a7ae3dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
17 changes: 3 additions & 14 deletions src/components/Structure/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,8 @@ const getHealthOfServices = async () => {
statusService.getStatusCBS().then(isOk => {
healthServices.value.STATUT_CBS = isOk;
})
// try {
// const response = await itemService.getHealthOfServices()
// if (response.data) {
// healthServices.value = response.data
// }
// } catch (error) {
// healthServices.value = [{
// 'STATUT CBS':false,
// 'STATUT BASE_XML':false,
// 'STATUT BASE_ITEM':false
// }]
// console.error('Erreur lors de la récupération des statuts des services :', error)
// }
itemService.getHealthOfServices().then(isOk => {
healthServices.value.STATUT_BASE_ITEM = isOk;
})
}
</script>
7 changes: 5 additions & 2 deletions src/service/ItemService.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ export class ItemService {
return this.client.get('applicationDetails');
}

getHealthOfServices(){
return this.client.get('applicationStatutServices')
async getHealthOfServices(){
return this.client.get('applicationStatutServices').then(response => {
console.log(response.data)
return response.data
})
}
}

Expand Down

0 comments on commit a7ae3dc

Please sign in to comment.