mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
add feedback to demo
This commit is contained in:
@@ -124,6 +124,9 @@ import {
|
|||||||
</content-action>
|
</content-action>
|
||||||
</content-actions>
|
</content-actions>
|
||||||
</alfresco-document-list>
|
</alfresco-document-list>
|
||||||
|
<div *ngIf="!authenticated">
|
||||||
|
Authentication failed to ip {{ host }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
styles: [':host > .container {padding: 10px}'],
|
styles: [':host > .container {padding: 10px}'],
|
||||||
@@ -135,13 +138,15 @@ class DocumentListDemo implements OnInit {
|
|||||||
|
|
||||||
authenticated: boolean;
|
authenticated: boolean;
|
||||||
|
|
||||||
|
host: string = 'http://192.168.99.101:8080';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private authService: AlfrescoAuthenticationService,
|
private authService: AlfrescoAuthenticationService,
|
||||||
settings: AlfrescoSettingsService,
|
settings: AlfrescoSettingsService,
|
||||||
translation: AlfrescoTranslationService,
|
translation: AlfrescoTranslationService,
|
||||||
documentActions: DocumentActionsService) {
|
documentActions: DocumentActionsService) {
|
||||||
|
|
||||||
settings.host = 'http://192.168.99.100:8080';
|
settings.host = this.host;
|
||||||
translation.translationInit();
|
translation.translationInit();
|
||||||
documentActions.setHandler('my-handler', this.myDocumentActionHandler.bind(this));
|
documentActions.setHandler('my-handler', this.myDocumentActionHandler.bind(this));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user