add watching file in demo document list

This commit is contained in:
Eugenio Romano
2016-07-13 00:30:33 +01:00
parent 6284f3195c
commit 0687e9f5fa
4 changed files with 6 additions and 5 deletions
@@ -54,7 +54,7 @@
"alfresco"
],
"dependencies": {
"alfresco-js-api": "0.1.0",
"alfresco-js-api": "^0.1.0",
"@angular/common": "2.0.0-rc.3",
"@angular/compiler": "2.0.0-rc.3",
"@angular/core": "2.0.0-rc.3",
@@ -1,6 +1,7 @@
{
"watch": [
"node_modules/ng2-alfresco-datatable/dist/**/*.{html,htm,css,js}",
"node_modules/ng2-alfresco-core/dist/**/*.{html,htm,css,js}",
"node_modules/ng2-alfresco-documentlist/dist/**/*.{html,htm,css,js}"
]
}
@@ -78,11 +78,11 @@ export class DocumentListService {
relativePath: folder,
include: ['path']
};
return this.getAlfrescoApi().getNodeChildren(nodeId, opts);
return this.getAlfrescoApi().node.getNodeChildren(nodeId, opts);
}
deleteNode(nodeId: string) {
return Observable.fromPromise(this.getAlfrescoApi().deleteNode(nodeId));
return Observable.fromPromise(this.getAlfrescoApi().node.deleteNode(nodeId));
}
/**
@@ -67,8 +67,8 @@
"material-design-lite": "1.1.3",
"ng2-translate": "2.2.2",
"alfresco-js-api": "0.1.0",
"ng2-alfresco-core": "0.1.36",
"alfresco-js-api": "^0.1.0",
"ng2-alfresco-core": "^0.1.36",
"ng2-alfresco-login": "file:../"
},
"devDependencies": {