File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
src/main/amp/web/js/softwareloop/inboxes Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,22 @@ define([
9292 } ,
9393
9494 composeLines : function ( ) {
95- this . previewUrl = lang . replace (
96- "{proxyUri}api/node/workspace/SpacesStore/{entryId}/content/thumbnails/doclib?c=queue&ph=true&lastModified=1" ,
97- {
98- proxyUri : Alfresco . constants . PROXY_URI ,
99- entryId : this . entryId
100- }
101- ) ;
95+ if ( this . entryAttributes . cmis_baseTypeId === "cmis:document" ) {
96+ this . previewUrl = lang . replace (
97+ "{proxyUri}api/node/workspace/SpacesStore/{entryId}/content/thumbnails/doclib?c=queue&ph=true&lastModified=1" ,
98+ {
99+ proxyUri : Alfresco . constants . PROXY_URI ,
100+ entryId : this . entryId
101+ }
102+ ) ;
103+ } else {
104+ this . previewUrl = lang . replace (
105+ "{urlRescontext}components/documentlibrary/images/folder-64.png" ,
106+ {
107+ urlRescontext : Alfresco . constants . URL_RESCONTEXT
108+ }
109+ ) ;
110+ }
102111 this . downloadUrl = lang . replace (
103112 "{proxyUri}api/node/content/workspace/SpacesStore/{entryId}/{filename}?a=true" ,
104113 {
You can’t perform that action at this time.
0 commit comments