Skip to content

Commit

Permalink
feat(nutanix): add pack type on listing page
Browse files Browse the repository at this point in the history
ref: MANAGER-16213

Signed-off-by: Thibaud Crespin <[email protected]>
  • Loading branch information
Thibaud Crespin committed Jan 23, 2025
1 parent 92bc11c commit e003f1d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/manager/modules/nutanix/src/cluster.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,12 @@ export default class Cluster {
setDatacenter(dcName) {
this.datacenter = dcName;
}

setPackType(packType) {
this.packType = packType;
}

getPackType() {
return this.packType;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
is-hidden="!$ctrl.haveServicesAuthorizations()"
>
<a
data-ng-if="!$ctrl.isLegacyPacka"
data-ng-if="!$ctrl.isLegacyPack"
class="oui-link oui-link_icon"
data-ng-href="{{:: $ctrl.NUTANIX_LINK }}"
target="_blank"
Expand Down
30 changes: 30 additions & 0 deletions packages/manager/modules/nutanix/src/routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,36 @@ export default /* @ngInject */ ($stateProvider) => {
return cluster;
});
},
/**
* To implement if we want to get packType
*/
// serviceInfo: /* @ngInject */ (NutanixService, serviceName) =>
// NutanixService.getServiceInfo(serviceName),
// serviceDetails: /* @ngInject */ (NutanixService, serviceInfo) =>
// NutanixService.getServiceDetails(serviceInfo.serviceId).catch(
// (error) => {
// if (error.status === 403) {
// return;
// }
// throw error;
// },
// ),
// getTechnicalDetails: /* @ngInject */ (
// NutanixService,
// serviceInfo,
// server,
// ) =>
// NutanixService.getClusterHardwareInfo(
// serviceInfo.serviceId,
// server.serviceId,
// )
// .then((data) => cluster.setPackType(data?.nutanixCluster?.license?.edition);
// .catch((error) => {
// if (error.status === 403) {
// return;
// }
// throw error;
// }),
apiPath: () => '/nutanix',
schema: /* @ngInject */ ($http) =>
$http.get('/nutanix.json').then(({ data }) => data),
Expand Down

0 comments on commit e003f1d

Please sign in to comment.