-
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(web-office): add modal order users
ref:MANAGER-16713 Signed-off-by: stif59100 <[email protected]>
- Loading branch information
Showing
26 changed files
with
502 additions
and
62 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
11 changes: 11 additions & 0 deletions
11
...nager/apps/web-office/public/translations/dashboard/users/order-users/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,11 @@ | ||
{ | ||
"dashboard_users_order_users_lastname_label": "Nom", | ||
"dashboard_users_order_users_firstname_label": "Prénom", | ||
"dashboard_users_order_users_login_label": "Identifiant", | ||
"dashboard_users_order_users_type": "Type de licence", | ||
"dashboard_users_order_users_type_placeholder": "Sélectionner", | ||
"dashboard_users_order_users_price": "Prix", | ||
"dashboard_users_order_users_message": "Vous serez facturé sur le nombre de licences activées dans le mois en cours.", | ||
"dashboard_users_order_users_message_error": "Une erreur s'est produite lors de la récupération des informations. {{error}}", | ||
"dashboard_users_order_users_message_success": "Votre demande d'ajout d'utilisateur a bien été pris en compte." | ||
} |
6 changes: 0 additions & 6 deletions
6
packages/manager/apps/web-office/public/translations/web-office-365/Messages_fr_FR.json
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...ages/manager/apps/web-office/public/translations/web-office-365/error/Messages_fr_FR.json
This file was deleted.
Oops, something went wrong.
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,3 +1,4 @@ | ||
export * from './license'; | ||
export * from './user'; | ||
export * from './order'; | ||
export * from './price'; |
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 @@ | ||
export const priceMock = { | ||
text: '7.99 €', | ||
value: 7.99, | ||
currencyCode: 'EUR', | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { v6 } from '@ovh-ux/manager-core-api'; | ||
|
||
// GET | ||
|
||
export const getOfficePrice = async ({ | ||
officeName, | ||
}: { | ||
officeName: string; | ||
}) => { | ||
const { data } = await v6.get(`/price/license/office/${officeName}`); | ||
return data; | ||
}; |
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,2 @@ | ||
export * from './api'; | ||
export * from './key'; |
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,7 @@ | ||
export const getOfficePriceQueryKey = (officeName: string) => [ | ||
'get', | ||
'price', | ||
'license', | ||
'office', | ||
officeName, | ||
]; |
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 |
---|---|---|
|
@@ -139,6 +139,7 @@ export default function ModalOrderLicenses() { | |
} | ||
max={300} | ||
min={1} | ||
className="ml-10" | ||
/> | ||
)} | ||
/> | ||
|
Oops, something went wrong.