diff --git a/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html b/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html
index 450d05aa62..b37e6375c6 100644
--- a/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html
+++ b/demo-shell-ng2/webcomponents/alfresco-file-list/src/alfresco-file-list.html
@@ -55,10 +55,10 @@
top: calc(50% - 8px);
}
- .iron-list ul { list-style-type: none; overflow: hidden; margin:10px}
- .iron-list ul li div.text{ float:left; text-align: left;height: 55px }
- .iron-list ul li div.folder-container{ float:left; width: 70px;text-align: left ;height: 55px}
- .iron-list ul li:hover { background: #eeeeee; height: 55px}
+ ul { list-style-type: none; overflow: hidden; margin:10px}
+ ul li div.text{ float:left; text-align: left;height: 55px }
+ ul li div.folder-container{ float:left; width: 70px;text-align: left ;height: 55px}
+ ul li:hover { background: #eeeeee; height: 55px}
.file{
width: 52px;
height: 52px;
@@ -88,6 +88,32 @@
padding: 0px;
}
+ .breadcrumb {
+ font-family: sans-serif;
+ font-size: 12px;
+ padding-left: 11px;
+ height: 28px;
+ width: auto;
+ }
+
+ .folder-breadcrumb-img{
+ float: left;
+ text-align: left;
+ height: 15px;
+ padding: 0px 10px 0px 0px;
+ }
+
+ .folder-breadcrumb-text{
+ float: left;
+ text-align: left;
+ height: 25px;
+ padding: 0px 10px 0px 0px;
+ }
+
+ .folder-breadcrumb-container{
+ float: left;
+ }
+
paper-dropdown-menu.custom {
overflow: visible;
--paper-input-container-label: {
@@ -108,11 +134,22 @@
display: none;
};
}
+
+
+
+
+

+
+
[[item]]
+
+
+
+
@@ -179,13 +216,23 @@
}
},
- goToFolder: function(event) {
- var slug= event.model.item.location.site + '/' + event.model.item.location.container + '/' + event.model.item.fileName
- console.log('click folder'+ this.baseUrl());
+ goToFolder: function (event) {
+ this.container = event.model.item.location.container;
+ var path = event.model.item.location.path !== '/' ? (event.model.item.location.path + '/' ) : '/';
+ var relativePath = this.container + path + event.model.item.fileName;
+ var slug = event.model.item.location.site + '/' + relativePath;
+ this.breadcrumbs = relativePath.split('/');
+ console.log('event.model.item.location.path' + event.model.item.location.path);
+ console.log('event.model.item.fileName' + event.model.item.fileName);
+ console.log('event.model.item.location.site' + event.model.item.location.site);
+
+ console.log('relativePath' + relativePath);
+ console.log('this.breadcrumbs' + this.breadcrumbs);
this.fetchFolderFolder(slug);
},
ready: function() {
+ this.breadcrumbs = ['documentLibrary'];
var initialFolder = 'swsdp/documentLibrary';
this.fetchFolderFolder(initialFolder);
var self = this;
@@ -203,11 +250,12 @@
var xhr = new XMLHttpRequest();
xhr.addEventListener("load", (XMLHttpRequestProgressEvent)=>{
this.data =JSON.parse(XMLHttpRequestProgressEvent.currentTarget.response).items;
- });
+ });
xhr.addEventListener("error", error);
xhr.open("GET", (this.baseUrl() + slug));
+ xhr.withCredentials = true;
xhr.setRequestHeader("Authorization", 'Basic ' + btoa('admin:admin'));
xhr.send();
},
diff --git a/react-app/.idea/workspace.xml b/react-app/.idea/workspace.xml
index 7b427dcbb2..0ae5785971 100644
--- a/react-app/.idea/workspace.xml
+++ b/react-app/.idea/workspace.xml
@@ -56,8 +56,8 @@
-
-
+
+
@@ -123,7 +123,7 @@
-
+
@@ -136,63 +136,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -623,15 +567,15 @@
-
+
-
+
-
+
@@ -992,8 +936,8 @@
-
-
+
+