diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.css b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.css
index eb6a18cf6e..f2075a3d7d 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.css
+++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.css
@@ -46,3 +46,16 @@
.adf-document-list-loading-margin {
margin: auto;
}
+
+.adf-document-list-loading-container {
+ min-height: 300px;
+ display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
+ display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
+ display: -webkit-flex; /* NEW - Chrome */
+ display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */
+ -webkit-box-flex-direction: row;
+ -moz-box-flex-direction: row;
+ -webkit-flex-direction: row;
+ flex-direction: row;
+ height: 100%;
+}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html
index 5f57b46f56..902ff9a0ff 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html
+++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html
@@ -25,23 +25,25 @@
-
-
-
+
+ This folder is empty
+ Drag and Drop
+ any files here to add
+ ![]()
+
diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.spec.ts
index a63328432d..99ece7e7af 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.spec.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.spec.ts
@@ -167,6 +167,27 @@ describe('DocumentList', () => {
});
});
+ it('should empty template be present when no element are present', (done) => {
+ documentList.currentFolderId = '1d26e465-dea3-42f3-b415-faa8364b9692';
+ documentList.folderNode = new NodeMinimal();
+ documentList.folderNode.id = '1d26e465-dea3-42f3-b415-faa8364b9692';
+ documentList.reload();
+
+ fixture.detectChanges();
+
+ documentList.ready.subscribe(() => {
+ fixture.detectChanges();
+ expect(element.querySelector('#adf-document-list-empty')).toBeDefined();
+ done();
+ });
+
+ jasmine.Ajax.requests.at(0).respondWith({
+ status: 200,
+ contentType: 'application/json',
+ responseText: JSON.stringify(fakeNodeAnswerWithNOEntries)
+ });
+ });
+
it('should not execute action without node provided', () => {
let action = new ContentActionModel();
action.handler = function () {
|