Skip to content

Commit

Permalink
Web: Files: added ButtonShareAccess translation, added share and row …
Browse files Browse the repository at this point in the history
…checkbox tooltip
  • Loading branch information
dmitry-sychugov committed Nov 30, 2021
1 parent 4c97720 commit 2b7bc7f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/asc-web-components/table-container/GroupMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ const StyledButton = styled(Button)`
`;

const GroupMenuItem = ({ item }) => {
const { label, disabled, onClick, iconUrl } = item;
const { label, disabled, onClick, iconUrl, title } = item;
return (
<StyledButton
label={label}
title={label}
title={title || label}
isDisabled={disabled}
onClick={onClick}
icon={<ReactSVG src={iconUrl} className="combo-button_selected-icon" />}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"AddAccount": "Konto hinzufügen",
"ArchivingData": "Archivieren der Daten",
"ButtonShareAccess": "Freigabeeinstellungen",
"ConnectingAccount": "Konto wird verbunden",
"Copy": "Kopieren",
"CopyOperation": "Kopieren",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"AddAccount": "Add account",
"ArchivingData": "Archiving data",
"ButtonShareAccess": "Sharing Settings",
"ConnectingAccount": "Connecting account",
"Copy": "Copy",
"CopyOperation": "Copying",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"AddAccount": "Ajouter un compte",
"ArchivingData": "Archivage des données",
"ButtonShareAccess": "Paramètres de partage",
"ConnectingAccount": "Connecter un compte",
"Copy": "Copier",
"CopyOperation": "copier",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ButtonShareAccess": "Impostazioni di condivisione",
"FolderTitleBoxNet": "Cartella di Box",
"FolderTitleDocuSign": "Account DocuSign",
"FolderTitleDropBox": "Cartella di Dropbox",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"AddAccount": "Adicionar conta",
"ArchivingData": "Arquivando dados",
"ButtonShareAccess": "Configurações de compartilhamento",
"ConnectingAccount": "Conectando conta",
"Copy": "Copiar",
"CopyOperation": "Copiando",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"AddAccount": "Подключить",
"ArchivingData": "Архивирование данных",
"ButtonShareAccess": "Настройка доступа",
"ConnectingAccount": "Подключение аккаунта",
"Copy": "Копировать",
"CopyOperation": "Копирование",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ButtonShareAccess": "Nastavenie zdieľania",
"FolderTitleBoxNet": "Box priečinok",
"FolderTitleDocuSign": "Účet DocuSign",
"FolderTitleDropBox": "Dropbox priečinok",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const FileNameCell = ({
onContentSelect,
checked,
selectionProp,
t,
}) => {
const { fileExst, title } = item;

Expand All @@ -32,6 +33,7 @@ const FileNameCell = ({
className="table-container_row-checkbox"
onChange={onChange}
isChecked={checked}
title={t("Translations:TitleSelectFile")}
/>
</TableCell>

Expand Down
3 changes: 2 additions & 1 deletion products/ASC.Files/Client/src/store/FilesActionsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class FilesActionStore {
this.updateCurrentFolder(selection.length);
if (isRecycleBinFolder) {
return toastr.success(translations.deleteFromTrash);
}
}

if (selection.length > 1) {
return toastr.success(translations.deleteSelectedElem);
Expand Down Expand Up @@ -728,6 +728,7 @@ class FilesActionStore {
label: t("Share"),
onClick: () => setSharingPanelVisible(true),
iconUrl: "/static/images/share.react.svg",
title: t("Translations:ButtonShareAccess"),
};

case "copy":
Expand Down

0 comments on commit 2b7bc7f

Please sign in to comment.