Merge branch 'feature/workspaces' of github.com:ONLYOFFICE/AppServer into feature/workspaces

This commit is contained in:
Artem Tarasov 2021-02-26 00:20:24 +03:00
commit f10d8ae11d
2 changed files with 17 additions and 19 deletions

View File

@ -37,7 +37,15 @@ const StyledTreeMenu = styled(TreeMenu)`
margin-left: 4px;
}*/
`;
const StyledFolderSVG = styled.div`
svg {
width: 100%;
path {
fill: #657077;
}
}
`;
const StyledExpanderDownIcon = styled(ExpanderDownIcon)`
${commonIconsStyles}
path {
@ -85,7 +93,7 @@ class TreeFolders extends React.Component {
iconUrl = "images/catalog.private.react.svg";
break;
case FolderType.TRASH:
iconUrl = "images/catalog.trash.react.svg";
iconUrl = "/static/images/catalog.trash.react.svg";
break;
default:
break;
@ -128,20 +136,10 @@ class TreeFolders extends React.Component {
break;
}
// return React.createElement(Icons[iconName], {
// size: "scale",
// isfill: true,
// color: "#657077",
// });
return (
<ReactSVG
src={iconUrl}
beforeInjection={(svg) => {
svg.setAttribute("style", `width: 24px; height: 24px;`);
svg.setAttribute("fill", "#657077");
}}
/>
<StyledFolderSVG>
<ReactSVG src={iconUrl} />
</StyledFolderSVG>
);
};

View File

@ -807,7 +807,7 @@ class SectionBodyContent extends React.Component {
return {
key: option,
label: t("Preview"),
icon: "static/images/eye.react.svg",
icon: "/static/images/eye.react.svg",
onClick: this.onClickLinkEdit,
disabled: true,
"data-id": item.id,
@ -817,7 +817,7 @@ class SectionBodyContent extends React.Component {
return {
key: option,
label: t("View"),
icon: "static/images/eye.react.svg",
icon: "/static/images/eye.react.svg",
onClick: this.onMediaFileClick,
disabled: false,
};
@ -841,7 +841,7 @@ class SectionBodyContent extends React.Component {
return {
key: option,
label: t("Copy"),
icon: "static/images/copy.react.svg",
icon: "/static/images/copy.react.svg",
onClick: this.onCopyAction,
disabled: false,
};
@ -849,7 +849,7 @@ class SectionBodyContent extends React.Component {
return {
key: option,
label: t("Duplicate"),
icon: "static/images/copy.react.svg",
icon: "/static/images/copy.react.svg",
onClick: this.onDuplicate,
disabled: false,
};
@ -876,7 +876,7 @@ class SectionBodyContent extends React.Component {
return {
key: option,
label: isThirdPartyFolder ? t("DeleteThirdParty") : t("Delete"),
icon: "static/images/catalog.trash.react.svg",
icon: "/static/images/catalog.trash.react.svg",
onClick: this.onClickDelete,
disabled: false,
"data-is-third-party": isThirdPartyFolder ? true : false,