Skip to content

Commit 6f0abdd

Browse files
committed
rm snack warning, no feeback for now
Signed-off-by: David BRAQUART <[email protected]>
1 parent 2f4500d commit 6f0abdd

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

src/components/directory-content-dialog.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function DirectoryContentDialog(
7373
) {
7474
const intl = useIntl();
7575
const dispatch = useDispatch();
76-
const { snackError, snackWarning } = useSnackMessage();
76+
const { snackError } = useSnackMessage();
7777
const itemSelectionForCopy = useSelector((state: AppState) => state.itemSelectionForCopy);
7878
const activeDirectory = useSelector((state: AppState) => state.activeDirectory);
7979
const enableDeveloperMode = useSelector((state: AppState) => state.enableDeveloperMode);
@@ -169,8 +169,7 @@ function DirectoryContentDialog(
169169
setOpenDescModificationDialog(true);
170170
} else if (childrenMetadata[event.data.elementUuid] !== undefined) {
171171
setActiveElement(event.data);
172-
const childName = childrenMetadata[event.data.elementUuid].elementName;
173-
setElementName(childName);
172+
setElementName(childrenMetadata[event.data.elementUuid].elementName);
174173
setElementDescription(childrenMetadata[event.data.elementUuid].description);
175174
const subtype = childrenMetadata[event.data.elementUuid].specificMetadata.type as unknown as string;
176175
/** set active directory on the store because it will be used while editing the contingency name */
@@ -181,13 +180,6 @@ function DirectoryContentDialog(
181180
if (url) {
182181
if (selectedDirectoryWritable) {
183182
window.open(url, '_blank');
184-
} else {
185-
snackWarning({
186-
messageTxt: intl.formatMessage(
187-
{ id: 'noWritePermissionOnStudy' },
188-
{ studyName: childName }
189-
),
190-
});
191183
}
192184
} else {
193185
snackError({
@@ -249,7 +241,6 @@ function DirectoryContentDialog(
249241
setActiveElement,
250242
setOpenDialog,
251243
snackError,
252-
snackWarning,
253244
]
254245
);
255246

src/translations/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
"retrieveCompositeModificationError": "Could not retrieve composite modification content: ",
122122
"PropertyName": "Property name",
123123
"getAppLinkError": "Error getting application link for type = {type}",
124-
"noWritePermissionOnStudy": "No write permission on the study \"{studyName}\"",
125124
"missingEquipmentsIdsError": "ID is required field for all equipments",
126125
"contingencyTablePartiallyDefinedError": "At least one contingency is partially defined",
127126
"contingencyTableContainAtLeastOneRowError": "Contingency list should contain at least one contingency ",

src/translations/fr.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
"retrieveCompositeModificationError": "Erreur d'accès au contenu de la modification composite : ",
121121
"PropertyName": "Nom de la propriété",
122122
"getAppLinkError": "Erreur lors de la récupération du lien vers l'application pour le type = {type}",
123-
"noWritePermissionOnStudy": "Pas de droits en écriture sur l'étude \"{studyName}\"",
124123
"missingEquipmentsIdsError": "L'ID est un champ obligatoire pour tous les ouvrages",
125124
"contingencyTablePartiallyDefinedError": "Au moins un des aléas est défini de manière incomplète",
126125
"contingencyTableContainAtLeastOneRowError": "La liste d'aléas doit contenir au moins un aléa",

0 commit comments

Comments
 (0)