mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[no-issue] downgrade scss bundle and some other minor fix (#2824)
* downgrade scss bundle and some other minor fix * 2.0.9 * remove chrome in travis conf * execute different configuration
This commit is contained in:
@@ -133,35 +133,35 @@ export class ContentService {
|
||||
/**
|
||||
* Get thumbnail URL for the given document node.
|
||||
*
|
||||
* @param {string|MinimalNodeEntity} nodeId Node to get URL for.
|
||||
* @param {string|MinimalNodeEntity} nodeId or node to get URL for.
|
||||
* @param {boolean} [attachment] Retrieve content as an attachment for download
|
||||
* @param {string} [ticket] Custom ticket to use for authentication
|
||||
* @returns {string} The URL address pointing to the content.
|
||||
*/
|
||||
getDocumentThumbnailUrl(nodeId: any, attachment?: boolean, ticket?: string): string {
|
||||
getDocumentThumbnailUrl(node: any, attachment?: boolean, ticket?: string): string {
|
||||
|
||||
if (nodeId && nodeId.entry) {
|
||||
nodeId = nodeId.entry.id;
|
||||
if (node && node.entry) {
|
||||
node = node.entry.id;
|
||||
}
|
||||
|
||||
return this.contentApi.getDocumentThumbnailUrl(nodeId, attachment, ticket);
|
||||
return this.contentApi.getDocumentThumbnailUrl(node, attachment, ticket);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get content URL for the given node.
|
||||
*
|
||||
* @param nodeId {string|MinimalNodeEntity} Node to get URL for.
|
||||
* @param node {string|MinimalNodeEntity} nodeId or node to get URL for.
|
||||
* @param {boolean} [attachment] Retrieve content as an attachment for download
|
||||
* @param {string} [ticket] Custom ticket to use for authentication
|
||||
* @returns {string} The URL address pointing to the content.
|
||||
*/
|
||||
getContentUrl(nodeId: any, attachment?: boolean, ticket?: string): string {
|
||||
getContentUrl(node: any, attachment?: boolean, ticket?: string): string {
|
||||
|
||||
if (nodeId && nodeId.entry) {
|
||||
nodeId = nodeId.entry.id;
|
||||
if (node && node.entry) {
|
||||
node = node.entry.id;
|
||||
}
|
||||
|
||||
return this.contentApi.getContentUrl(nodeId, attachment, ticket);
|
||||
return this.contentApi.getContentUrl(node, attachment, ticket);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -125,8 +125,8 @@ export class ThumbnailService {
|
||||
* @param document Node to get URL for.
|
||||
* @returns {string} URL address.
|
||||
*/
|
||||
public getDocumentThumbnailUrl(document: any): string {
|
||||
let thumbnail = this.contentService.getDocumentThumbnailUrl(document);
|
||||
public getDocumentThumbnailUrl(node: any): string {
|
||||
let thumbnail = this.contentService.getDocumentThumbnailUrl(node);
|
||||
return thumbnail || this.DEFAULT_ICON;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user