Skip to content

Commit

Permalink
Clarifying vRack type on PCC. Handling unavailable API call when retr…
Browse files Browse the repository at this point in the history
…eiving vRack associated services
  • Loading branch information
carsso committed Jan 3, 2024
1 parent 2303ddc commit d77fa4d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/PccDatacenterPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<span class="text-gray-500">({{ datacenter.commercialRangeName }})</span>
</div>
<div>
<i class="fas fa-network-wired"></i> vRack :
<i class="fas fa-network-wired"></i> Datacenter vRack :
<template v-if="!vrack.datacenters || !vrack.datacenters[datacenter.name]">
<template v-if="loading">
<i class="fas fa-circle-notch fa-spin"></i>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/PccHead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</template>
<br />
<div v-if="vrack">
<i class="fas fa-network-wired"></i> vRack :
<i class="fas fa-network-wired"></i> VMNetwork vRack :
<template v-if="!vrack.pcc">
<template v-if="loading">
<i class="fas fa-circle-notch fa-spin"></i>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/PccPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<span class="text-gray-500">({{ datacenter.commercialRangeName }})</span>
</div>
<div class="text-sm">
<i class="fas fa-network-wired"></i> vRack :
<i class="fas fa-network-wired"></i> Datacenter vRack :
<template v-if="!vrack.datacenters || !vrack.datacenters[datacenter.name]">
<template v-if="loading">
<i class="fas fa-circle-notch fa-spin"></i>
Expand Down
2 changes: 2 additions & 0 deletions resources/js/components/VracksPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export default {
async loadVracks() {
const vrackSchema = await this.get(`${this.ovhapiRoute}/v1/vrack.json`);
this.vrackServicesTypes = vrackSchema.models['vrack.AllowedServiceEnum'].enum;
// Removing vrackServices from the list because API is not available yet
this.vrackServicesTypes = this.vrackServicesTypes.filter((serviceType) => serviceType !== 'vrackServices');
const vrackNames = await this.get(`${this.ovhapiRoute}/v1/vrack`);
for (let vrackName of vrackNames) {
this.loadVrack(vrackName);
Expand Down

0 comments on commit d77fa4d

Please sign in to comment.