mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
@@ -50,10 +50,7 @@ System.register(['angular2/core', './../services/alfresco.service'], function(ex
|
||||
};
|
||||
this.currentFolderPath = 'swsdp/documentLibrary';
|
||||
this.route = [];
|
||||
this.documentActions = [];
|
||||
this.quickDocumentActions = [];
|
||||
this.folderActions = [];
|
||||
this.quickFolderActions = [];
|
||||
this.actions = [];
|
||||
this.columns = [];
|
||||
}
|
||||
DocumentList.prototype.canNavigateParent = function () {
|
||||
@@ -71,6 +68,17 @@ System.register(['angular2/core', './../services/alfresco.service'], function(ex
|
||||
componentHandler.upgradeAllRegistered();
|
||||
}
|
||||
};
|
||||
DocumentList.prototype.getContentActions = function (target, type) {
|
||||
if (target && type) {
|
||||
var ltarget_1 = target.toLowerCase();
|
||||
var ltype_1 = type.toLowerCase();
|
||||
return this.actions.filter(function (entry) {
|
||||
return entry.target.toLowerCase() === ltarget_1 &&
|
||||
entry.type.toLowerCase() === ltype_1;
|
||||
});
|
||||
}
|
||||
return [];
|
||||
};
|
||||
DocumentList.prototype.onNavigateParentClick = function ($event) {
|
||||
if ($event) {
|
||||
$event.preventDefault();
|
||||
@@ -119,11 +127,6 @@ System.register(['angular2/core', './../services/alfresco.service'], function(ex
|
||||
DocumentList.prototype.getDocumentThumbnailUrl = function (document) {
|
||||
return this._alfrescoService.getDocumentThumbnailUrl(document);
|
||||
};
|
||||
DocumentList.prototype.registerDocumentAction = function (action) {
|
||||
if (action) {
|
||||
this.documentActions.push(action);
|
||||
}
|
||||
};
|
||||
DocumentList.prototype.executeContentAction = function (document, action) {
|
||||
// todo: safety checks
|
||||
action.handler(document);
|
||||
|
Reference in New Issue
Block a user