#46 Upload files in a folder

This commit is contained in:
mauriziovitale84
2016-05-12 12:55:35 +01:00
parent 4898a2e63e
commit 3c2167273f
17 changed files with 85 additions and 27 deletions

View File

@@ -46,6 +46,7 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
this.navigate = true;
this.breadcrumb = false;
this.itemClick = new core_1.EventEmitter();
this.folderClick = new core_1.EventEmitter();
this.rootFolder = {
name: 'Document Library',
path: 'Sites/swsdp/documentLibrary'
@@ -190,7 +191,10 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
*/
DocumentList.prototype.displayFolderContent = function (path) {
var _this = this;
if (path) {
if (path !== null) {
this.folderClick.emit({
value: path
});
this.currentFolderPath = path;
this._alfrescoService
.getFolder(path)
@@ -266,6 +270,10 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], DocumentList.prototype, "itemClick", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], DocumentList.prototype, "folderClick", void 0);
DocumentList = __decorate([
core_1.Component({
moduleId: __moduleName,

File diff suppressed because one or more lines are too long

View File

@@ -53,6 +53,9 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
@Output()
itemClick: EventEmitter<any> = new EventEmitter();
@Output()
folderClick: EventEmitter<any> = new EventEmitter();
rootFolder = {
name: 'Document Library',
path: 'Sites/swsdp/documentLibrary'
@@ -221,6 +224,9 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
*/
displayFolderContent(path) {
if (path !== null) {
this.folderClick.emit({
value: path
});
this.currentFolderPath = path;
this._alfrescoService
.getFolder(path)