diff --git a/packages/cozy-sharing/locales/fr.json b/packages/cozy-sharing/locales/fr.json index d53cca391a..a8fdacf6ab 100644 --- a/packages/cozy-sharing/locales/fr.json +++ b/packages/cozy-sharing/locales/fr.json @@ -25,8 +25,8 @@ "locked-type-folder": "Bientôt : vous pourrez changer la permission donnée sur le dossier.", "recipients": { "you": "Vous", - "anyoneWithTheLink": "N'importe qui avec le lien", - "linkWithPassword": "N'importe qui avec un mot de passe", + "anyoneWithTheLink": "Tous les utilisateurs qui ont le lien", + "linkWithPassword": "Tous les utilisateurs avec le mot de passe", "expires": "Jusqu'au %{date}", "accessCount": "%{count} personnes y ont accès" }, @@ -69,7 +69,7 @@ "close": "Fermer" }, "permissionLink": { - "title": "Autoriser n'importe qui avec le lien à :", + "title": "Autoriser tous les utilisateurs qui ont le lien à :", "seeFile": "Consulter le fichier", "modifyFile": "Modifier le fichier", "seeFolder": "Consulter le dossier", diff --git a/packages/cozy-sharing/src/components/Recipient/LinkRecipient.jsx b/packages/cozy-sharing/src/components/Recipient/LinkRecipient.jsx index 4b729b0199..532339b0fa 100644 --- a/packages/cozy-sharing/src/components/Recipient/LinkRecipient.jsx +++ b/packages/cozy-sharing/src/components/Recipient/LinkRecipient.jsx @@ -2,9 +2,10 @@ import PropTypes from 'prop-types' import React, { useState } from 'react' import Avatar from 'cozy-ui/transpiled/react/Avatar' -import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton' +import Button from 'cozy-ui/transpiled/react/Button' import Fade from 'cozy-ui/transpiled/react/Fade' import Icon from 'cozy-ui/transpiled/react/Icon' +import Gear from 'cozy-ui/transpiled/react/Icons/Gear' import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link' import ListItem from 'cozy-ui/transpiled/react/ListItem' import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon' @@ -68,12 +69,14 @@ const LinkRecipient = props => { setOpenShareRestrictionModal(true)} + endIcon={} + className="u-p-0" > {textPrimary} - + } secondary={textSecondary} /> diff --git a/packages/cozy-sharing/src/components/ShareRestrictionModal/BoxEditingRights.jsx b/packages/cozy-sharing/src/components/ShareRestrictionModal/BoxEditingRights.jsx index 410407b75e..d380b49410 100644 --- a/packages/cozy-sharing/src/components/ShareRestrictionModal/BoxEditingRights.jsx +++ b/packages/cozy-sharing/src/components/ShareRestrictionModal/BoxEditingRights.jsx @@ -3,6 +3,7 @@ import React, { useReducer, useRef } from 'react' import { useClient } from 'cozy-client' import { isDirectory as isDir } from 'cozy-client/dist/models/file' +import flag from 'cozy-flags' import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu' import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions' import Box from 'cozy-ui/transpiled/react/Box' @@ -52,28 +53,30 @@ export const BoxEditingRights = ({ file, editingRights, setEditingRights }) => { return ( <> - - - - - - - - - - - - - + {!flag('drive.federated-shared-folder.enabled') && ( + + + + + + + + + + + + + + )}