-
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.
Merge pull request #3631 from ovh/develop
New release
- Loading branch information
Showing
41 changed files
with
274 additions
and
52 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
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
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
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 |
---|---|---|
|
@@ -16,4 +16,9 @@ | |
.overflow-auto { | ||
overflow: auto !important; | ||
} | ||
|
||
.text-small { | ||
font-size: 0.875rem; | ||
vertical-align: sub; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/manager/modules/pci/src/projects/new/error-modal/error-modal.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,14 @@ | ||
import template from './error-modal.html'; | ||
|
||
const component = { | ||
bindings: { | ||
goBack: '<', | ||
message: '<', | ||
submitAction: '<', | ||
submitLabel: '<', | ||
submitLink: '<', | ||
}, | ||
template, | ||
}; | ||
|
||
export default component; |
16 changes: 16 additions & 0 deletions
16
packages/manager/modules/pci/src/projects/new/error-modal/error-modal.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,16 @@ | ||
<form | ||
id="eligibilityWarning" | ||
name="eligibilityWarning" | ||
data-ng-submit="$ctrl.submitAction()" | ||
novalidate | ||
> | ||
<oui-modal | ||
data-primary-label="{{ ::$ctrl.submitLabel }}" | ||
data-secondary-action="$ctrl.goBack()" | ||
data-secondary-label="{{ ::'pci_project_new_error_cancel' | translate }}" | ||
data-on-dismiss="$ctrl.goBack()" | ||
data-type="error" | ||
> | ||
<p data-ng-bind="$ctrl.message"></p> | ||
</oui-modal> | ||
</form> |
23 changes: 23 additions & 0 deletions
23
packages/manager/modules/pci/src/projects/new/error-modal/error-modal.module.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,23 @@ | ||
import angular from 'angular'; | ||
import '@uirouter/angularjs'; | ||
import '@ovh-ux/ng-translate-async-loader'; | ||
import '@ovh-ux/ui-kit'; | ||
import 'angular-translate'; | ||
|
||
import component from './error-modal.component'; | ||
import routing from './error-modal.routing'; | ||
|
||
const moduleName = 'ovhManagerPciProjectErrorModal'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
'oui', | ||
'ui.router', | ||
'ngTranslateAsyncLoader', | ||
'pascalprecht.translate', | ||
]) | ||
.config(routing) | ||
.component('pciProjectErrorModal', component) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
43 changes: 43 additions & 0 deletions
43
packages/manager/modules/pci/src/projects/new/error-modal/error-modal.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,43 @@ | ||
import set from 'lodash/set'; | ||
|
||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('pci.projects.project.error', { | ||
url: '/error', | ||
views: { | ||
modal: { | ||
component: 'pciProjectErrorModal', | ||
}, | ||
}, | ||
layout: 'modal', | ||
params: { | ||
message: null, | ||
projectId: null, | ||
submitLabel: null, | ||
submitLink: null, | ||
}, | ||
resolve: { | ||
goBack: /* @ngInject */ ($state, projectId) => () => | ||
$state.go('pci.projects.project', { | ||
projectId, | ||
}), | ||
|
||
breadcrumb: () => null, | ||
|
||
submitAction: /* @ngInject */ ($window, submitLink) => () => { | ||
set($window, 'location.href', submitLink); | ||
}, | ||
|
||
message: /* @ngInject */ ($transition$) => | ||
$transition$.params().message || null, | ||
|
||
projectId: /* @ngInject */ ($transition$) => | ||
$transition$.params().projectId || null, | ||
|
||
submitLabel: /* @ngInject */ ($transition$) => | ||
$transition$.params().submitLabel || null, | ||
|
||
submitLink: /* @ngInject */ ($transition$) => | ||
$transition$.params().submitLink || null, | ||
}, | ||
}); | ||
}; |
22 changes: 22 additions & 0 deletions
22
packages/manager/modules/pci/src/projects/new/error-modal/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,22 @@ | ||
import angular from 'angular'; | ||
import '@uirouter/angularjs'; | ||
import 'oclazyload'; | ||
|
||
const moduleName = 'ovhManagerPciProjectErrorModalLazyloading'; | ||
|
||
angular.module(moduleName, ['ui.router', 'oc.lazyLoad']).config( | ||
/* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('pci.projects.project.error.**', { | ||
url: '/error', | ||
lazyLoad: ($transition$) => { | ||
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad'); | ||
|
||
return import('./error-modal.module').then((mod) => | ||
$ocLazyLoad.inject(mod.default || mod), | ||
); | ||
}, | ||
}); | ||
}, | ||
); | ||
|
||
export default moduleName; |
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
5 changes: 3 additions & 2 deletions
5
packages/manager/modules/pci/src/projects/new/translations/Messages_de_DE.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"pci_project_new_error_contact_support": "Kundendienst kontaktieren", | ||
"pci_project_new_error_ask_increase_projects_quota": "Sie können kein weiteres Public Cloud Projekt erstellen, da Sie die maximale Zahl an Projekten bereits erreicht haben. Um das Quota zu erhöhen, wenden Sie sich bitte an den Support.", | ||
"pci_project_new_error_verify_paypal": "Sie können mit Ihrem PayPal-Konto kein Public Cloud Projekt erstellen, da das Konto noch nicht verifiziert wurde. Bitte ergreifen Sie die notwendigen Maßnahmen bei PayPal, um Ihr Konto zu verifizieren, und versuchen Sie es erneut. Wahlweise können Sie auch ein anderes <a href=\"{{ href }}\">Standardzahlungsmittel</a> verwenden." | ||
"pci_project_new_error_ask_increase_projects_quota": "Sie können kein Projekt mehr erstellen. Bitte kontaktieren Sie den Support um Ihr Quota zu erhöhen und so ein neues Projekt erstellen zu können.", | ||
"pci_project_new_error_verify_paypal": "Sie können mit Ihrem PayPal-Konto kein Public Cloud Projekt erstellen, da das Konto noch nicht verifiziert wurde. Bitte ergreifen Sie die notwendigen Maßnahmen bei PayPal, um Ihr Konto zu verifizieren, und versuchen Sie es erneut. Wahlweise können Sie auch ein anderes <a href=\"{{ href }}\">Standardzahlungsmittel</a> verwenden.", | ||
"pci_project_new_error_cancel": "Abbrechen" | ||
} |
5 changes: 3 additions & 2 deletions
5
packages/manager/modules/pci/src/projects/new/translations/Messages_en_GB.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"pci_project_new_error_contact_support": "Contact support", | ||
"pci_project_new_error_ask_increase_projects_quota": "You cannot create an additional Public Cloud project because you have reached the maximum quota for projects. To unblock this quota, please contact our support team.", | ||
"pci_project_new_error_verify_paypal": "You cannot create a Public Cloud project with your PayPal account, because it is not verified. Please go to the PayPal website and verify your account, then try again. You can also modify <a href=\"{{ href }}\">your default payment method</a>." | ||
"pci_project_new_error_ask_increase_projects_quota": "You can no longer create projects. Please contact the support team to increase your quota, and create a new project.", | ||
"pci_project_new_error_verify_paypal": "You cannot create a Public Cloud project with your PayPal account, because it is not verified. Please go to the PayPal website and verify your account, then try again. You can also modify <a href=\"{{ href }}\">your default payment method</a>.", | ||
"pci_project_new_error_cancel": "Cancel" | ||
} |
5 changes: 3 additions & 2 deletions
5
packages/manager/modules/pci/src/projects/new/translations/Messages_es_ES.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"pci_project_new_error_contact_support": "Contactar con el soporte", | ||
"pci_project_new_error_ask_increase_projects_quota": "No puede crear más proyectos de Public Cloud debido a que ha alcanzado el límite de proyectos. Para desbloquear dicho límite, contacte con el soporte.", | ||
"pci_project_new_error_verify_paypal": "No puede crear proyectos de Public Cloud con su cuenta de PayPal debido a que esta no está verificada. Le rogamos que realice los trámites pertinentes con PayPal para verificar su cuenta. Posteriormente podrá volver a intentarlo. También puede modificar su <a href=\"{{ href }}\">forma de pago por defecto</a>." | ||
"pci_project_new_error_ask_increase_projects_quota": "Si no puede crear más proyectos, puede ponerse en contacto con el soporte para aumentar su límite y poder crear un nuevo proyecto.", | ||
"pci_project_new_error_verify_paypal": "No puede crear proyectos de Public Cloud con su cuenta de PayPal debido a que esta no está verificada. Le rogamos que realice los trámites pertinentes con PayPal para verificar su cuenta. Posteriormente podrá volver a intentarlo. También puede modificar su <a href=\"{{ href }}\">forma de pago por defecto</a>.", | ||
"pci_project_new_error_cancel": "Cancelar" | ||
} |
5 changes: 3 additions & 2 deletions
5
packages/manager/modules/pci/src/projects/new/translations/Messages_fi_FI.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"pci_project_new_error_contact_support": "Contact support", | ||
"pci_project_new_error_ask_increase_projects_quota": "You cannot create an additional Public Cloud project because you have reached the maximum quota for projects. To unblock this quota, please contact our support team.", | ||
"pci_project_new_error_verify_paypal": "You cannot create a Public Cloud project with your PayPal account, because it is not verified. Please go to the PayPal website and verify your account, then try again. You can also modify <a href=\"{{ href }}\">your default payment method</a>." | ||
"pci_project_new_error_ask_increase_projects_quota": "You can no longer create projects. Please contact the support team to increase your quota, and create a new project.", | ||
"pci_project_new_error_verify_paypal": "You cannot create a Public Cloud project with your PayPal account, because it is not verified. Please go to the PayPal website and verify your account, then try again. You can also modify <a href=\"{{ href }}\">your default payment method</a>.", | ||
"pci_project_new_error_cancel": "Cancel" | ||
} |
5 changes: 3 additions & 2 deletions
5
packages/manager/modules/pci/src/projects/new/translations/Messages_fr_CA.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"pci_project_new_error_contact_support": "Contacter le support", | ||
"pci_project_new_error_ask_increase_projects_quota": "Vous ne pouvez pas créer de projet Public Cloud supplémentaire, car vous avez atteint le quota maximum de projets. Pour débloquer ce quota, nous vous invitons à contacter notre support.", | ||
"pci_project_new_error_verify_paypal": "Vous ne pouvez pas créer de projet Public Cloud avec votre compte PayPal, car celui-ci n'est pas vérifié. Nous vous invitons à effectuer les démarches nécessaires auprès de PayPal pour vérifier votre compte, puis à réessayer. Vous pouvez aussi modifier <a href=\"{{ href }}\">votre moyen de paiement par défaut</a>." | ||
"pci_project_new_error_ask_increase_projects_quota": "Vous ne pouvez plus créer de projet, veuillez contacter le support pour augmenter votre quota et avoir la possibilité de créer un nouveau projet.", | ||
"pci_project_new_error_verify_paypal": "Vous ne pouvez pas créer de projet Public Cloud avec votre compte PayPal, car celui-ci n'est pas vérifié. Nous vous invitons à effectuer les démarches nécessaires auprès de PayPal pour vérifier votre compte, puis à réessayer. Vous pouvez aussi modifier <a href=\"{{ href }}\">votre moyen de paiement par défaut</a>.", | ||
"pci_project_new_error_cancel": "Annuler" | ||
} |
Oops, something went wrong.