mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4227] Sidenav Layout - support direction (#4583)
* basic ui direction service * direction property * demo shell integration * move the direction in up sidenav layout to allow also the header to reorganize use the configuration editor to change rtl ltr add documenation * Update app.component.html * fix unit tests * fix overlay viewer e2e * fix e2e
This commit is contained in:
committed by
Eugenio Romano
parent
83cb98f435
commit
3b83539b13
@@ -17,7 +17,6 @@
|
||||
|
||||
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
|
||||
import {
|
||||
UserPreferencesService,
|
||||
AuthenticationService,
|
||||
AlfrescoApiService,
|
||||
PageTitleService
|
||||
@@ -33,24 +32,15 @@ import { MatDialog } from '@angular/material';
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
|
||||
textOrientation: string = 'ltr';
|
||||
|
||||
constructor(private pageTitleService: PageTitleService,
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private authenticationService: AuthenticationService,
|
||||
private userPreferencesService: UserPreferencesService,
|
||||
private router: Router,
|
||||
private dialogRef: MatDialog) {
|
||||
|
||||
this.userPreferencesService.set('textOrientation', this.textOrientation);
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.userPreferencesService.select('textOrientation').subscribe((textOrientation) => {
|
||||
this.textOrientation = textOrientation;
|
||||
});
|
||||
|
||||
this.pageTitleService.setTitle('title');
|
||||
|
||||
this.alfrescoApiService.getInstance().on('error', (error) => {
|
||||
|
Reference in New Issue
Block a user