Skip to content

Commit e82da9c

Browse files
authored
adjust text , store layout diagram button (#3268)
* adjust text , store layout diagram button --------- Signed-off-by: SOUISSI Maissa (Externe) <[email protected]>
1 parent efc291d commit e82da9c

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

src/components/grid-layout/grid-layout-toolbar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useState } from 'react';
99
import { Box, Button, ToggleButton, ToggleButtonGroup, Tooltip } from '@mui/material';
1010
import { FormattedMessage, useIntl } from 'react-intl';
1111
import { UUID } from 'crypto';
12-
import { Search, Public, Upload, SaveOutlined } from '@mui/icons-material';
12+
import { Search, Public, Upload } from '@mui/icons-material';
1313
import {
1414
DirectoryItemSelector,
1515
ElementType,
@@ -83,9 +83,9 @@ export const GridLayoutToolbar = (props: DiagramGridHeaderProps) => {
8383
</ToggleButtonGroup>
8484
</Box>
8585
<Box>
86-
<Tooltip title={<FormattedMessage id="SaveGridLayout" />}>
87-
<Button startIcon={<SaveOutlined />} sx={{ textTransform: 'uppercase' }} onClick={onLayoutSave}>
88-
<FormattedMessage id="SaveGridLayout" />
86+
<Tooltip title={<FormattedMessage id="StoreButtonTooltip" />}>
87+
<Button onClick={onLayoutSave}>
88+
<FormattedMessage id="StoreDiagramLayout" />
8989
</Button>
9090
</Tooltip>
9191
</Box>

src/components/grid-layout/hooks/use-save-diagram-layout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ export const useSaveDiagramLayout = ({ layouts, diagrams }: UseSaveDiagramLayout
107107
)
108108
.then(() => {
109109
snackInfo({
110-
headerId: 'GridLayoutPanelSaveSuccess',
110+
headerId: 'DiagramLayoutStoreSuccess',
111111
});
112112
})
113113
.catch(() => {
114114
snackError({
115-
headerId: 'GridLayoutPanelSaveError',
115+
headerId: 'DiagramLayoutStoreError',
116116
});
117117
});
118118
}, [diagrams, layouts, studyUuid, snackInfo, snackError]);

src/translations/en.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,9 +1563,10 @@
15631563
"MapCardNotAvailable": "Map is not available",
15641564
"AddNewCard": "Images",
15651565
"Display": "Display",
1566-
"SaveGridLayout": "Save",
1567-
"GridLayoutPanelSaveError": "An error occurred while saving the grid layout panel",
1568-
"GridLayoutPanelSaveSuccess": "Grid layout panel saved successfully",
1566+
"StoreDiagramLayout": "Store",
1567+
"StoreButtonTooltip": "Store diagram layout in the study",
1568+
"DiagramLayoutStoreError": "An error occured when storing the diagrams",
1569+
"DiagramLayoutStoreSuccess": "Diagrams successfully stored",
15691570
"MaxNumberOfNadDiagramsReached": "You need to close at least one network area diagram to open a new one",
15701571
"NoMatch": "No match",
15711572
"Rows": "row",

src/translations/fr.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,9 +1559,10 @@
15591559
"MapCardNotAvailable": "La carte n'est pas disponible",
15601560
"AddNewCard": "Images",
15611561
"Display": "Affichage",
1562-
"SaveGridLayout": "Enregistrer",
1563-
"GridLayoutPanelSaveError": "Une erreur est survenue lors de l'enregistrement de la grille du diagramme",
1564-
"GridLayoutPanelSaveSuccess": "La grille des diagrammes a été enregistrée avec succès",
1562+
"StoreDiagramLayout": "Mémoriser",
1563+
"StoreButtonTooltip": "Mémoriser la disposition des images dans l'étude",
1564+
"DiagramLayoutStoreError": "Une erreur s'est produite lors de la mémorisation des images",
1565+
"DiagramLayoutStoreSuccess": "Images mémorisées avec succès",
15651566
"MaxNumberOfNadDiagramsReached": "Vous devez fermer au moins une image nodale existante pour en ouvrir une nouvelle",
15661567
"NoMatch": "Pas de correspondance",
15671568
"Rows": "ligne",

0 commit comments

Comments
 (0)