-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dedicated): delete vrack from billing autorenew page #13823
base: master
Are you sure you want to change the base?
Conversation
31a46e4
to
569c062
Compare
/* @ngInject */ | ||
constructor($scope, $translate, BillingTerminate, OvhApiVrack) { | ||
this.$scope = $scope; | ||
this.TERMINATE_PATTERN = /^TERMINATE$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its good to keep this in constant file
this.OvhApiVrack.Aapi() | ||
.services({ serviceName: this.service }) | ||
.$promise.then((allServicesParam) => { | ||
const services = Object.entries(allServicesParam).filter( | ||
([, value]) => { | ||
return Array.isArray(value) && value.length; | ||
}, | ||
); | ||
if (!services.length) { | ||
this.$scope.isEmpty = true; | ||
} | ||
}) | ||
.finally(() => { | ||
this.$scope.isLoading = false; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be done on routing resolve so it is executed before page load
bindings: { | ||
goBack: '<', | ||
service: '<', | ||
serviceType: '<', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serviceType: '<', | |
serviceType: '<', | |
isEmpty: '<' |
packages/manager/modules/billing/src/autoRenew/actions/terminate-vrack/routing.js
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
export default class TerminateVrackController { | ||
/* @ngInject */ | ||
constructor($scope, $translate, BillingTerminate) { | ||
this.$scope = $scope; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$scope to remove
isEmpty: /* @ngInject */ (OvhApiVrack, $transition$) => | ||
OvhApiVrack.Aapi() | ||
.services({ serviceName: $transition$.params().service }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isEmpty: /* @ngInject */ (OvhApiVrack, $transition$) => | |
OvhApiVrack.Aapi() | |
.services({ serviceName: $transition$.params().service }) | |
isEmpty: /* @ngInject */ (OvhApiVrack, service) => | |
OvhApiVrack.Aapi() | |
.services({ serviceName: service }) |
ref: MANAGER-15077 Signed-off-by: soufien mhelhali <[email protected]>
8f68197
289f616
to
8f68197
Compare
Signed-off-by: CDS Translator Agent <[email protected]>
Quality Gate passedIssues Measures |
master
Description
Related
translation