Skip to content

Commit 77bd26b

Browse files
committed
Close softwareloop#38 Preview for folders
1 parent 73f9551 commit 77bd26b

File tree

1 file changed

+16
-7
lines changed
  • src/main/amp/web/js/softwareloop/inboxes

1 file changed

+16
-7
lines changed

src/main/amp/web/js/softwareloop/inboxes/Item.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)