diff --git a/ui-ngx/src/app/modules/home/home.component.ts b/ui-ngx/src/app/modules/home/home.component.ts index 2028325b0e..fc5068a0c5 100644 --- a/ui-ngx/src/app/modules/home/home.component.ts +++ b/ui-ngx/src/app/modules/home/home.component.ts @@ -30,12 +30,14 @@ import { getCurrentAuthState, selectAuthUser, selectUserDetails } from '@core/au import { MediaBreakpoints } from '@shared/models/constants'; import { ActionNotificationShow } from '@core/notification/notification.actions'; import { Router } from '@angular/router'; -import * as screenfull from 'screenfull'; +import * as _screenfull from 'screenfull'; import { MatSidenav } from '@angular/material/sidenav'; import { AuthState } from '@core/auth/auth.models'; import { WINDOW } from '@core/services/window.service'; import { ISearchableComponent, instanceOfSearchableComponent } from '@home/models/searchable-component.models'; +const screenfull = _screenfull as _screenfull.Screenfull; + @Component({ selector: 'tb-home', templateUrl: './home.component.html', @@ -60,8 +62,7 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni @ViewChild('searchInput') searchInputField: ElementRef; - // @ts-ignore - fullscreenEnabled = screenfull.enabled; + fullscreenEnabled = screenfull.isEnabled; authUser$: Observable; userDetails$: Observable; @@ -125,15 +126,12 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni } toggleFullscreen() { - // @ts-ignore - if (screenfull.enabled) { - // @ts-ignore + if (screenfull.isEnabled) { screenfull.toggle(); } } isFullscreen() { - // @ts-ignore return screenfull.isFullscreen; } diff --git a/ui-ngx/src/app/modules/home/menu/menu-link.component.html b/ui-ngx/src/app/modules/home/menu/menu-link.component.html index e1780212b5..62bb29a7a6 100644 --- a/ui-ngx/src/app/modules/home/menu/menu-link.component.html +++ b/ui-ngx/src/app/modules/home/menu/menu-link.component.html @@ -15,9 +15,10 @@ limitations under the License. --> - + + + {{section.icon}} + + {{section.name | translate}} + + diff --git a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html index 76398df3ae..0a61a80de5 100644 --- a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html +++ b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html @@ -15,15 +15,16 @@ limitations under the License. --> - + + + {{section.icon}} + + {{section.name | translate}} + + +