diff --git a/products/ASC.Files/Client/src/components/panels/SharingPanel/SharingRow.js b/products/ASC.Files/Client/src/components/panels/SharingPanel/SharingRow.js
index 8bfd0ecb04..4c2b2b9210 100644
--- a/products/ASC.Files/Client/src/components/panels/SharingPanel/SharingRow.js
+++ b/products/ASC.Files/Client/src/components/panels/SharingPanel/SharingRow.js
@@ -27,6 +27,7 @@ const SharingRow = (props) => {
onDenyAccessClick,
onRemoveUserClick,
onShowEmbeddingPanel,
+ accessRight,
} = props;
const linkVisible = selection && selection.length === 1 && item.shareLink;
@@ -38,6 +39,57 @@ const SharingRow = (props) => {
toastr.success(t("LinkCopySuccess"));
};
+ const advancedOptions = (
+ <>
+ {accessOptions.includes("FullAccess") && (
+
+ )}
+
+ {accessOptions.includes("ReadOnly") && (
+
+ )}
+
+ {accessOptions.includes("Review") && (
+
+ )}
+
+ {accessOptions.includes("Comment") && (
+
+ )}
+
+ {accessOptions.includes("FormFilling") && (
+
+ )}
+ {accessOptions.includes("DenyAccess") && (
+
+ )}
+ >
+ );
+
const advancedOptionsRender = () => (
<>
{accessOptions.includes("FullAccess") && (
@@ -89,6 +141,25 @@ const SharingRow = (props) => {
>
);
+ const accessOptionsComboBox = (accessOptions, item, isDisabled) => (
+
+ {React.createElement(Icons[accessRight.icon], {
+ size: "medium",
+ className: "sharing-access-combo-box-icon",
+ })}
+
+ );
+
const embeddedComponentRender = (accessOptions, item, isDisabled) => (
{
{
+ console.log(res);
+ });
+
if (folderId.length !== 0 || fileId.length !== 0) {
getShareUsers(folderId, fileId)
.then((res) => {
@@ -648,6 +670,7 @@ class SharingPanelComponent extends React.Component {
index={index}
isMyId={isMyId}
accessOptions={accessOptions}
+ accessRight={accessRight}
onFullAccessClick={this.onFullAccessItemClick}
onReadOnlyClick={this.onReadOnlyItemClick}
onReviewClick={this.onReviewItemClick}