mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
update isShared check (#828)
This commit is contained in:
parent
7364dbc1ee
commit
ec4f1a673f
@ -46,11 +46,16 @@ export class ToggleSharedComponent implements OnInit {
|
||||
|
||||
isShared(selection) {
|
||||
// workaround for shared files
|
||||
if (selection.first.entry && selection.first.entry.sharedByUser) {
|
||||
if (
|
||||
selection.first &&
|
||||
selection.first.entry &&
|
||||
selection.first.entry.sharedByUser
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return (
|
||||
selection.first &&
|
||||
selection.first.entry &&
|
||||
selection.first.entry.properties &&
|
||||
!!selection.first.entry.properties['qshare:sharedId']
|
||||
|
Loading…
x
Reference in New Issue
Block a user