add watching file in demo document list

This commit is contained in:
Eugenio Romano
2016-07-05 11:51:50 +01:00
parent 6284f3195c
commit 0687e9f5fa
4 changed files with 6 additions and 5 deletions

View File

@@ -54,7 +54,7 @@
"alfresco" "alfresco"
], ],
"dependencies": { "dependencies": {
"alfresco-js-api": "0.1.0", "alfresco-js-api": "^0.1.0",
"@angular/common": "2.0.0-rc.3", "@angular/common": "2.0.0-rc.3",
"@angular/compiler": "2.0.0-rc.3", "@angular/compiler": "2.0.0-rc.3",
"@angular/core": "2.0.0-rc.3", "@angular/core": "2.0.0-rc.3",

View File

@@ -1,6 +1,7 @@
{ {
"watch": [ "watch": [
"node_modules/ng2-alfresco-datatable/dist/**/*.{html,htm,css,js}", "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}" "node_modules/ng2-alfresco-documentlist/dist/**/*.{html,htm,css,js}"
] ]
} }

View File

@@ -78,11 +78,11 @@ export class DocumentListService {
relativePath: folder, relativePath: folder,
include: ['path'] include: ['path']
}; };
return this.getAlfrescoApi().getNodeChildren(nodeId, opts); return this.getAlfrescoApi().node.getNodeChildren(nodeId, opts);
} }
deleteNode(nodeId: string) { deleteNode(nodeId: string) {
return Observable.fromPromise(this.getAlfrescoApi().deleteNode(nodeId)); return Observable.fromPromise(this.getAlfrescoApi().node.deleteNode(nodeId));
} }
/** /**

View File

@@ -67,8 +67,8 @@
"material-design-lite": "1.1.3", "material-design-lite": "1.1.3",
"ng2-translate": "2.2.2", "ng2-translate": "2.2.2",
"alfresco-js-api": "0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-alfresco-core": "0.1.36", "ng2-alfresco-core": "^0.1.36",
"ng2-alfresco-login": "file:../" "ng2-alfresco-login": "file:../"
}, },
"devDependencies": { "devDependencies": {