mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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.itemClick = new core_1.EventEmitter();
|
||||||
this.rootFolder = {
|
this.rootFolder = {
|
||||||
name: 'Document Library',
|
name: 'Document Library',
|
||||||
path: 'swsdp/documentLibrary'
|
path: 'Sites/swsdp/documentLibrary'
|
||||||
};
|
};
|
||||||
this.currentFolderPath = 'swsdp/documentLibrary';
|
this.currentFolderPath = 'swsdp/documentLibrary';
|
||||||
this.route = [];
|
this.route = [];
|
||||||
@@ -204,8 +204,8 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
|||||||
*/
|
*/
|
||||||
DocumentList.prototype.getNodePath = function (node) {
|
DocumentList.prototype.getNodePath = function (node) {
|
||||||
if (node) {
|
if (node) {
|
||||||
var pathWithCompanyHome = node.entry.path.name;
|
var pathWithCompanyHome = item.entry.path.name;
|
||||||
return pathWithCompanyHome.replace('/Company Home', '') + '/' + node.entry.name;
|
return pathWithCompanyHome.replace('/Company Home', '') + '/' + item.entry.name;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
@@ -56,7 +56,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
|
|||||||
|
|
||||||
rootFolder = {
|
rootFolder = {
|
||||||
name: 'Document Library',
|
name: 'Document Library',
|
||||||
path: 'swsdp/documentLibrary'
|
path: 'Sites/swsdp/documentLibrary'
|
||||||
};
|
};
|
||||||
currentFolderPath: string = 'swsdp/documentLibrary';
|
currentFolderPath: string = 'swsdp/documentLibrary';
|
||||||
folder: NodePaging;
|
folder: NodePaging;
|
||||||
|
Reference in New Issue
Block a user