[ADF-2560] Empty template for nodes without permissions (#3171)

* No permissions template

* Unit test added

* custom template

* template selector changed

* tslint error fix
This commit is contained in:
Alex Bolboșenco
2018-04-17 22:22:48 +03:00
committed by Eugenio Romano
parent 06d85aa8d3
commit cebe0f57f5
8 changed files with 128 additions and 2 deletions

View File

@@ -251,6 +251,67 @@ export const fakeNodeWithOnlyLocally: any = {
}
};
export const fakeNodeWithoutPermissions: any = {
'aspectNames': [
'cm:auditable',
'cm:taggable',
'cm:author',
'cm:titled',
'app:uifacets'
],
'createdAt': '2017-11-16T16:29:38.638+0000',
'path': {
'name': '/Company Home/Sites/testsite/documentLibrary',
'isComplete': true,
'elements': [
{
'id': '2be275a1-b00d-4e45-83d8-66af43ac2252',
'name': 'Company Home'
},
{
'id': '1be10a97-6eb9-4b60-b6c6-1673900e9631',
'name': 'Sites'
},
{
'id': 'e002c740-b8f9-482a-a554-8fff4e4c9dc0',
'name': 'testsite'
},
{
'id': '71626fae-0c04-4d0c-a129-20fa4c178716',
'name': 'documentLibrary'
}
]
},
'isFolder': true,
'isFile': false,
'createdByUser': {
'id': 'System',
'displayName': 'System'
},
'modifiedAt': '2018-03-21T03:17:58.783+0000',
'permissions': {
'locallySet': [],
'settable': [],
'isInheritanceEnabled': false
},
'modifiedByUser': {
'id': 'admin',
'displayName': 'PedroH Hernandez'
},
'name': 'test',
'id': 'f472543f-7218-403d-917b-7a5861257244',
'nodeType': 'cm:folder',
'properties': {
'cm:title': 'test',
'cm:author': 'yagud',
'cm:taggable': [
'e8c8fbba-03ba-4fa6-86b1-f7ad7c296409'
],
'cm:description': 'sleepery',
'app:icon': 'space-icon-default'
}
};
export const fakeSiteNodeResponse: any = {
'list': {
'pagination': {