mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Upgrade to latest ADF (alpha) (#361)
* upgrade libs * update libs * upgrade page title management * restore app config * use 'title' property * update libs * disble cypress * update libs * disable irrelevant tests
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
import { Component, OnInit, EventEmitter } from '@angular/core';
|
||||
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
|
||||
import {
|
||||
TranslationService, PageTitleService, UserPreferencesService, AppConfigService,
|
||||
PageTitleService, UserPreferencesService, AppConfigService,
|
||||
FileModel, UploadService
|
||||
} from '@alfresco/adf-core';
|
||||
import { ElectronService } from '@ngstack/electron';
|
||||
@@ -41,7 +41,6 @@ export class AppComponent implements OnInit {
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private pageTitle: PageTitleService,
|
||||
private translateService: TranslationService,
|
||||
preferences: UserPreferencesService,
|
||||
config: AppConfigService,
|
||||
private electronService: ElectronService,
|
||||
@@ -67,13 +66,7 @@ export class AppComponent implements OnInit {
|
||||
const snapshot: any = currentRoute.snapshot || {};
|
||||
const data: any = snapshot.data || {};
|
||||
|
||||
if (data.i18nTitle) {
|
||||
pageTitle.setTitle(
|
||||
this.translateService.instant(data.i18nTitle)
|
||||
);
|
||||
} else {
|
||||
pageTitle.setTitle(data.title || '');
|
||||
}
|
||||
pageTitle.setTitle(data.title || '');
|
||||
});
|
||||
|
||||
this.electronService.on('app:navigateRoute', (event: any, ...args: string[]) => {
|
||||
|
Reference in New Issue
Block a user