mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix 404s when loading sample site content, missing Sites prefix
Refs #7
This commit is contained in:
@@ -48,7 +48,7 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
this.itemClick = new core_1.EventEmitter();
|
||||
this.rootFolder = {
|
||||
name: 'Document Library',
|
||||
path: 'swsdp/documentLibrary'
|
||||
path: 'Sites/swsdp/documentLibrary'
|
||||
};
|
||||
this.currentFolderPath = 'swsdp/documentLibrary';
|
||||
this.route = [];
|
||||
@@ -204,8 +204,8 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
*/
|
||||
DocumentList.prototype.getNodePath = function (node) {
|
||||
if (node) {
|
||||
var pathWithCompanyHome = node.entry.path.name;
|
||||
return pathWithCompanyHome.replace('/Company Home', '') + '/' + node.entry.name;
|
||||
var pathWithCompanyHome = item.entry.path.name;
|
||||
return pathWithCompanyHome.replace('/Company Home', '') + '/' + item.entry.name;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
@@ -56,7 +56,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
|
||||
|
||||
rootFolder = {
|
||||
name: 'Document Library',
|
||||
path: 'swsdp/documentLibrary'
|
||||
path: 'Sites/swsdp/documentLibrary'
|
||||
};
|
||||
currentFolderPath: string = 'swsdp/documentLibrary';
|
||||
folder: NodePaging;
|
||||
|
Reference in New Issue
Block a user