mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2766] download button for custom sources (#3258)
* download button for custom sources * fix enum usage
This commit is contained in:
committed by
Eugenio Romano
parent
76005cd215
commit
9b78fcb445
@@ -25,7 +25,8 @@ import {
|
||||
NodePaging,
|
||||
PersonEntry,
|
||||
SitePaging,
|
||||
DeletedNodesPaging
|
||||
DeletedNodesPaging,
|
||||
SortDefinitionType
|
||||
} from 'alfresco-js-api';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
@@ -56,7 +57,7 @@ export class CustomResourcesService {
|
||||
],
|
||||
include: ['path', 'properties', 'allowableOperations'],
|
||||
sort: [{
|
||||
type: 'FIELD',
|
||||
type: SortDefinitionType.FIELD,
|
||||
field: 'cm:modified',
|
||||
ascending: false
|
||||
}],
|
||||
@@ -66,8 +67,8 @@ export class CustomResourcesService {
|
||||
}
|
||||
};
|
||||
return this.apiService.searchApi.search(query)
|
||||
.then((serachResult) => {
|
||||
observer.next(serachResult);
|
||||
.then((searchResult) => {
|
||||
observer.next(searchResult);
|
||||
observer.complete();
|
||||
},
|
||||
(err) => {
|
||||
|
Reference in New Issue
Block a user