mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-02 17:34:51 +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) {
|
isShared(selection) {
|
||||||
// workaround for shared files
|
// 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 true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
selection.first &&
|
||||||
selection.first.entry &&
|
selection.first.entry &&
|
||||||
selection.first.entry.properties &&
|
selection.first.entry.properties &&
|
||||||
!!selection.first.entry.properties['qshare:sharedId']
|
!!selection.first.entry.properties['qshare:sharedId']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user