Merge pull request #182 from ONLYOFFICE/bugfix/remove-favorites

Bugfix/remove-favorites
This commit is contained in:
Ilya Oleshko 2021-01-29 17:01:05 +03:00 committed by GitHub
commit af45e43f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -541,6 +541,7 @@ class FilesRowContent extends React.PureComponent {
: { onClick: this.onFilesClick };
const showNew = !!newItems;
//console.log(fileStatus);
return isEdit ? (
<EditingWrapperComponent
itemTitle={itemTitle}
@ -624,7 +625,7 @@ class FilesRowContent extends React.PureComponent {
hoverColor="#3B72A7"
/>
)}
{fileStatus === 32 && !isTrashFolder && (
{fileStatus === 96 && !isTrashFolder && (
<Icons.FavoriteIcon
className="favorite"
size="small"

View File

@ -712,7 +712,7 @@ const getFilesContextOptions = (
const options = [];
const isFile = !!item.fileExst;
const isFavorite = item.fileStatus === 32;
const isFavorite = item.fileStatus === 96;
const isFullAccess = item.access < 2;
const isThirdPartyFolder = item.providerKey && isRootFolder;