mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
accessibility page heading
This commit is contained in:
@@ -59,6 +59,7 @@ import { INITIAL_APP_STATE } from './store/initial-state';
|
||||
})
|
||||
export class AppComponent implements OnInit, OnDestroy {
|
||||
onDestroy$: Subject<boolean> = new Subject<boolean>();
|
||||
pageHeading = '';
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
@@ -111,6 +112,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
const snapshot: any = event.snapshot || {};
|
||||
const data: any = snapshot.data || {};
|
||||
|
||||
this.pageHeading = data.title || '';
|
||||
pageTitle.setTitle(data.title || '');
|
||||
this.store.dispatch(new SetCurrentUrlAction(router.url));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user