-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dedicated): delete vrack from billing autorenew page
ref: MANAGER-15077 Signed-off-by: soufien mhelhali <[email protected]>
- Loading branch information
soufien mhelhali
committed
Oct 29, 2024
1 parent
2020a1d
commit 31a46e4
Showing
11 changed files
with
102 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/manager/modules/billing/src/autoRenew/actions/terminate-vrack-blocked/component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import template from './template.html'; | ||
|
||
export default { | ||
bindings: { | ||
goBack: '<', | ||
id: '<', | ||
serviceType: '<', | ||
}, | ||
template, | ||
name: 'billingAutorenewTerminateVrackBlocked', | ||
}; |
25 changes: 25 additions & 0 deletions
25
packages/manager/modules/billing/src/autoRenew/actions/terminate-vrack-blocked/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import angular from 'angular'; | ||
import angularTranslate from 'angular-translate'; | ||
import ngAtInternet from '@ovh-ux/ng-at-internet'; | ||
import ngTranslateAsyncLoader from '@ovh-ux/ng-translate-async-loader'; | ||
import '@ovh-ux/ui-kit'; | ||
import uiRouter from '@uirouter/angularjs'; | ||
|
||
import component from './component'; | ||
import routing from './routing'; | ||
|
||
const moduleName = 'ovhManagerBillingAutorenewTerminateVrackBlocked'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
angularTranslate, | ||
ngAtInternet, | ||
ngTranslateAsyncLoader, | ||
'oui', | ||
uiRouter, | ||
]) | ||
.config(routing) | ||
.component(component.name, component) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
21 changes: 21 additions & 0 deletions
21
packages/manager/modules/billing/src/autoRenew/actions/terminate-vrack-blocked/routing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('app.account.billing.autorenew.terminateVrackBlocked', { | ||
url: '/terminate-vrack-blocked?id&serviceType', | ||
views: { | ||
modal: { | ||
component: 'billingAutorenewTerminateVrackBlocked', | ||
}, | ||
}, | ||
layout: 'modal', | ||
resolve: { | ||
goBack: /* @ngInject */ (goToAutorenew) => goToAutorenew, | ||
id: /* @ngInject */ ($transition$) => $transition$.params().id, | ||
serviceType: /* @ngInject */ ($transition$) => | ||
$transition$.params().serviceType, | ||
breadcrumb: () => null, | ||
}, | ||
atInternet: { | ||
ignore: true, | ||
}, | ||
}); | ||
}; |
13 changes: 13 additions & 0 deletions
13
packages/manager/modules/billing/src/autoRenew/actions/terminate-vrack-blocked/template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<oui-modal | ||
data-heading="{{:: 'autorenew_agora_terminate_vrack_blocked_title' | translate }}" | ||
data-primary-action="$ctrl.goBack()" | ||
data-primary-label="{{:: 'autorenew_agora_terminate_vrack_blocked_close' | translate }}" | ||
data-secondary-disabled="true" | ||
data-on-dismiss="$ctrl.goBack()" | ||
> | ||
<oui-message data-type="warning" class="mb-2"> | ||
<span | ||
data-translate="autorenew_agora_terminate_vrack_blocked_description" | ||
></span> | ||
</oui-message> | ||
</oui-modal> |
5 changes: 5 additions & 0 deletions
5
...es/billing/src/autoRenew/actions/terminate-vrack-blocked/translations/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"autorenew_agora_terminate_vrack_blocked_title": "Supprimer mon Vrack", | ||
"autorenew_agora_terminate_vrack_blocked_description": "Afin de supprimer votre Vrack vous devez au préalable deconnecter tous les services qui y sont ratachés", | ||
"autorenew_agora_terminate_vrack_blocked_close": "Fermer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters