[ADF-1995] reduce search in mobile device and show only for CS users

This commit is contained in:
Eugenio Romano
2017-11-23 08:39:19 +00:00
parent 8d982c7875
commit 19fe900938
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
@media screen and ($mat-small) { @media screen and ($mat-small) {
adf-search-bar { adf-search-bar {
width: 200px; width: 150px;
} }
} }

View File

@@ -61,7 +61,7 @@ describe('SearchControlComponent', () => {
})); }));
beforeEach(async(() => { beforeEach(async(() => {
spyOn(authService, 'isLoggedIn').and.returnValue(true); spyOn(authService, 'isEcmLoggedIn').and.returnValue(true);
})); }));
afterEach(async(() => { afterEach(async(() => {

View File

@@ -111,7 +111,7 @@ export class SearchControlComponent implements OnInit, OnDestroy {
} }
isLoggedIn(): boolean { isLoggedIn(): boolean {
return this.authService.isLoggedIn(); return this.authService.isEcmLoggedIn();
} }
searchSubmit(event: any) { searchSubmit(event: any) {