diff --git a/demo-shell-ng2/app/components/alfresco.service.ts b/demo-shell-ng2/app/components/alfresco.service.ts index cb58c6e2e0..854ed14a45 100644 --- a/demo-shell-ng2/app/components/alfresco.service.ts +++ b/demo-shell-ng2/app/components/alfresco.service.ts @@ -28,6 +28,10 @@ export class AlfrescoService { return this._host + '/alfresco/service/api/node/' + document.nodeRef.replace('://', '/') + '/content/thumbnails/doclib?c=queue&ph=true&lastModified=1'; } + getContentUrl(document: DocumentEntity) { + return this._host + '/alfresco/service/' + document.contentUrl; + } + private handleError (error: Response) { // in a real world app, we may send the error to some remote logging infrastructure // instead of just logging it to the console diff --git a/demo-shell-ng2/app/components/document-list.component.ts b/demo-shell-ng2/app/components/document-list.component.ts index 441ffd0684..b36cd3a7a9 100644 --- a/demo-shell-ng2/app/components/document-list.component.ts +++ b/demo-shell-ng2/app/components/document-list.component.ts @@ -26,6 +26,15 @@ import {DocumentEntity} from "./core/entities/document.entity"; :host .document-header:hover { text-decoration: underline; } + + :host .download-button { + color: #777; + text-decoration: none; + } + + :host .download-button:hover { + color: #555; + } ` ], template: ` @@ -36,10 +45,13 @@ import {DocumentEntity} from "./core/entities/document.entity";