Skip to content

Commit

Permalink
Remove calls to cloud providers to get IP addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcaunt committed Nov 28, 2024
1 parent eab29c1 commit fcae6a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3 class="admin-box-title">
<td>{{ instance.owner?.fullName }}</td>
<td>{{ instance.owner.affiliation ? instance.owner.affiliation.name : 'No affiliation'}}</td>
<td *ngIf="multiCloudEnabled">{{ instance.cloudClient.name}}</td>
<td>{{ instance.cloudInstance?.address || 'No IP address'}}</td>
<td>{{ instance.ipAddress || 'No IP address'}}</td>
<td [ngClass]="{'text-danger': instance.state ==='ERROR'}">{{ instance.state.replace('_', ' ') | titlecase }}</td>
<td>
<clr-tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class LatestInstancesBoxComponent implements OnInit, OnDestroy {
uid
name
createdAt
ipAddress
plan {
image {
name
Expand All @@ -105,9 +106,6 @@ export class LatestInstancesBoxComponent implements OnInit, OnDestroy {
}
}
state
cloudInstance {
address
}
owner {
id
fullName
Expand Down
11 changes: 4 additions & 7 deletions src/app/admin/components/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,14 @@
<visa-admin-cloud-client-distribution-box [refresh]="refreshEvent$"></visa-admin-cloud-client-distribution-box>
</div>
</div>

</div>

<div class="clr-col-lg-3">
<div><visa-admin-image-count-stat [refresh]="refreshEvent$"></visa-admin-image-count-stat></div>
<div><visa-admin-flavour-count-stat [refresh]="refreshEvent$"></visa-admin-flavour-count-stat></div>
<visa-admin-activated-users-count-stat [refresh]="refreshEvent$">
</visa-admin-activated-users-count-stat>
<visa-admin-cloud-limit-box [refresh]="refreshEvent$">
</visa-admin-cloud-limit-box>
<visa-admin-instance-states-box [refresh]="refreshEvent$">
</visa-admin-instance-states-box>
<visa-admin-activated-users-count-stat [refresh]="refreshEvent$"></visa-admin-activated-users-count-stat>
<visa-admin-cloud-limit-box [refresh]="refreshEvent$"></visa-admin-cloud-limit-box>
<visa-admin-instance-states-box [refresh]="refreshEvent$"></visa-admin-instance-states-box>
</div>
</div>
</div>
Expand Down

0 comments on commit fcae6a9

Please sign in to comment.