Skip to content

Commit

Permalink
feat(dedicated): revert delete vrack from billing autorenew page
Browse files Browse the repository at this point in the history
ref: MANAGER-15077

Signed-off-by: Nicolas Pierre-charles <[email protected]>
  • Loading branch information
chipp972 authored Jan 15, 2025
1 parent 6471fd5 commit 46ea401
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 244 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ export default class BillingTerminate {
return this.$http.post(`/services/${serviceId}/terminate`);
}

serviceTerminationForVrack(serviceId) {
return this.$http.post(`/vrack/${serviceId}/terminate`);
}

getTerminationForm(serviceId) {
return this.OvhApiServices.Form()
.v6()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import template from './services-actions.html';
export default {
bindings: {
billingManagementAvailability: '<',
deleteVrackAvailability: '<',
service: '<',
trackingPrefix: '@?',
trackingPage: '@?',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,9 @@ export default class ServicesActionsCtrl {
}

canResiliate() {
if (this.service.serviceType === this.SERVICE_TYPE.VRACK) {
return this.deleteVrackAvailability && !!this.resiliateLink;
}

return ![
SERVICE_TYPE.PACK_XDSL,
SERVICE_TYPE.VRACK,
SERVICE_TYPE.VMWARE_CLOUD_DIRECTOR_ORGANIZATION,
].includes(this.service.serviceType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ export default class BillingLinksService {
? resiliationByEndRuleLink
: `${autorenewLink}/delete-all-dom?serviceId=${service.serviceId}&serviceType=${service.serviceType}`;
break;
case SERVICE_TYPE.VRACK:
if (service.status !== 'suspended') {
links.resiliateLink = `${autorenewLink}/terminate-vrack?service=${service.serviceId}${serviceTypeParam}`;
}
break;
case SERVICE_TYPE.OKMS:
case SERVICE_TYPE.VRACK_SERVICES:
case SERVICE_TYPE.LICENSE_HYCU:
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default {
hasAutoRenew: '<',
homeLink: '<',
isAutorenewManagementAvailable: '<',
canDeleteVrack: '<',
isAutorenew2016DeploymentBannerAvailable: '<',
isEnterpriseCustomer: '<',
nicBilling: '<',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@
tracking-page="{{ $ctrl.trackingPage }}"
user="$ctrl.currentUser"
billing-management-availability="$ctrl.isAutorenewManagementAvailable"
delete-vrack-availability="$ctrl.canDeleteVrack"
>
</billing-services-actions>
</oui-datagrid-column>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import terminateHostingWeb from './actions/terminateHostingWeb/hosting-web.modul
import terminatePrivateDatabase from './actions/terminatePrivateDatabase/private-database.module';
import terminateWebCoach from './actions/terminate-webcoach/terminate-webcoach.module';
import terminateAllDOm from './actions/terminate-all-dom/module';
import terminateVrack from './actions/terminate-vrack';
import update from './actions/update/update.module';
import warnNicBilling from './actions/warnNicBilling/warnNicBilling.module';
import warnPendingDebt from './actions/warnPendingDebt/pending-debt.module';
Expand Down Expand Up @@ -73,7 +72,6 @@ angular
terminatePrivateDatabase,
terminateWebCoach,
terminateAllDOm,
terminateVrack,
uiRouter,
update,
warnNicBilling,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export default /* @ngInject */ ($stateProvider, coreConfigProvider) => {
},
featureAvailability: /* @ngInject */ (ovhFeatureFlipping) =>
ovhFeatureFlipping.checkFeatureAvailability([
'vrack:delete',
'billing:management',
'billing:autorenew2016Deployment',
]),
Expand All @@ -108,8 +107,6 @@ export default /* @ngInject */ ($stateProvider, coreConfigProvider) => {
featureAvailability?.isFeatureAvailable(
'billing:autorenew2016Deployment',
) || false,
canDeleteVrack: /* @ngInject */ (featureAvailability) =>
featureAvailability?.isFeatureAvailable('vrack:delete') || false,
hideBreadcrumb: /* @ngInject */ () => true,
trackingPrefix: () => 'dedicated::account::billing::autorenew',
},
Expand Down

0 comments on commit 46ea401

Please sign in to comment.