Fix 404s when loading sample site content, missing Sites prefix

Refs #7
This commit is contained in:
Will Abson
2016-05-11 17:22:20 +01:00
parent eebb051515
commit daeddee98e
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
};

View File

@@ -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;