From 5c401007f28acd7e20729bc745ae1d9661610816 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 29 Nov 2016 13:26:41 +0000 Subject: [PATCH] user-info fixes and performance improvements (#1171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * #1167 document-list improvements - allow setting custom root path - document-list module now re-exports datatable module (no need importing it separately if document-list is already used) - documentation updates and fixes * readme updates and unit test * user-info fixes and performance improvements - setup live reloads for user-info (demo shell) - optimise user-info template (single *ngIf, [mdl] directive for ‘user-profile-lists’ instead of CPU-hungry `ngAfterViewChecked`) --- demo-shell-ng2/wsrv-config.json | 1 + .../src/components/user-info.component.html | 145 +++++++++--------- .../src/components/user-info.component.ts | 11 +- 3 files changed, 76 insertions(+), 81 deletions(-) diff --git a/demo-shell-ng2/wsrv-config.json b/demo-shell-ng2/wsrv-config.json index bacfda5339..5329327a46 100644 --- a/demo-shell-ng2/wsrv-config.json +++ b/demo-shell-ng2/wsrv-config.json @@ -6,6 +6,7 @@ "node_modules/ng2-alfresco-login/dist/**/*.{html,css,js}", "node_modules/ng2-alfresco-search/dist/**/*.{html,css,js}", "node_modules/ng2-alfresco-upload/dist/**/*.{html,css,js}", + "node_modules/ng2-alfresco-userinfo/dist/**/*.{html,css,js}", "node_modules/ng2-alfresco-viewer/dist/**/*.{html,css,js}", "node_modules/ng2-alfresco-webscript/dist/**/*.{html,css,js}", "node_modules/ng2-activiti-form/dist/**/*.{html,css,js}", diff --git a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.html b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.html index 753230730e..0591a3d99e 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.html +++ b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.html @@ -1,83 +1,84 @@
-
- user-info-profile-button -
-