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:
Denys Vuika
2018-05-21 12:27:12 +01:00
committed by GitHub
parent 829b421108
commit b78f97c79d
6 changed files with 39 additions and 46 deletions

View File

@@ -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[]) => {