mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
add not login message to search demo
This commit is contained in:
@@ -36,11 +36,14 @@ import {
|
||||
@Component({
|
||||
selector: 'alfresco-search-demo',
|
||||
template: `
|
||||
<div class="container">
|
||||
<alfresco-search-control *ngIf="authenticated" [searchTerm]="searchTerm"
|
||||
<div class="container" *ngIf="authenticated">
|
||||
<alfresco-search-control [searchTerm]="searchTerm"
|
||||
(searchChange)="searchTermChange($event);"></alfresco-search-control>
|
||||
<alfresco-search [searchTerm]="searchTerm"></alfresco-search>
|
||||
</div>
|
||||
<div *ngIf="!authenticated">
|
||||
Authentication failed to ip {{ host }}
|
||||
</div>
|
||||
`,
|
||||
styles: [':host > .container {padding: 10px}'],
|
||||
providers: [ALFRESCO_SEARCH_PROVIDERS],
|
||||
@@ -53,13 +56,15 @@ class SearchDemo implements OnInit {
|
||||
|
||||
public searchTerm: string = 'foo bar';
|
||||
|
||||
host: string = 'http://192.168.99.100:8080';
|
||||
|
||||
constructor(
|
||||
private authService: AlfrescoAuthenticationService,
|
||||
settings: AlfrescoSettingsService,
|
||||
translation: AlfrescoTranslationService,
|
||||
searchService: AlfrescoService) {
|
||||
|
||||
settings.host = 'http://192.168.99.100:8080';
|
||||
settings.host = this.host;
|
||||
translation.translationInit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user