mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
ACS-8404: consolidate application settings (#3952)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
(click)="toggleNavBar.emit()"
|
||||
(keypress)="toggleNavBar.emit()">
|
||||
<img
|
||||
src="{{ logo$ | async }}"
|
||||
src="{{ logoUrl }}"
|
||||
title="{{'APP.TOOLTIPS.COLLAPSE_NAVIGATION' | translate}}"
|
||||
alt="{{ 'CORE.HEADER.LOGO_ARIA' | translate }}" />
|
||||
</div>
|
||||
@@ -15,7 +15,7 @@
|
||||
class="aca-sidenav-header-title-text"
|
||||
data-automation-id="app-sidenav-header-title-text"
|
||||
[routerLink]="landingPage">
|
||||
{{ appName$ | async | translate }}
|
||||
{{ appName | translate }}
|
||||
</div>
|
||||
|
||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||
|
@@ -23,9 +23,7 @@
|
||||
*/
|
||||
|
||||
import { Component, EventEmitter, inject, OnDestroy, OnInit, Output, ViewEncapsulation } from '@angular/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { Subject } from 'rxjs';
|
||||
import { AppStore, getAppName, getLogoPath } from '@alfresco/aca-shared/store';
|
||||
import { ContentActionRef } from '@alfresco/adf-extensions';
|
||||
import { AppExtensionService, AppSettingsService, ToolbarComponent } from '@alfresco/aca-shared';
|
||||
import { takeUntil } from 'rxjs/operators';
|
||||
@@ -43,12 +41,11 @@ import { RouterModule } from '@angular/router';
|
||||
})
|
||||
export class SidenavHeaderComponent implements OnInit, OnDestroy {
|
||||
private onDestroy$ = new Subject<boolean>();
|
||||
private store = inject<Store<AppStore>>(Store);
|
||||
private appSettings = inject(AppSettingsService);
|
||||
private appExtensions = inject(AppExtensionService);
|
||||
|
||||
appName$ = this.store.select(getAppName);
|
||||
logo$ = this.store.select(getLogoPath);
|
||||
appName = this.appSettings.appName;
|
||||
logoUrl = this.appSettings.appLogoUrl;
|
||||
landingPage = this.appSettings.landingPage;
|
||||
actions: Array<ContentActionRef> = [];
|
||||
|
||||
|
Reference in New Issue
Block a user