mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4227] Material Dialog - change direction option based on textOrientation (#4716)
* change matDialog direction based on textOrientation * move dialog providers to material.module * extend initial options * move UserPreferencesService from factory * update module * update test * material dialog correct reference * extend default global options * tests
This commit is contained in:
committed by
Denys Vuika
parent
de0f906163
commit
164d398abc
@@ -24,7 +24,7 @@ import {
|
||||
MatInputModule, MatListModule, MatNativeDateModule, MatOptionModule, MatProgressSpinnerModule, MatRadioModule,
|
||||
MatRippleModule, MatSelectModule, MatSlideToggleModule, MatTableModule, MatTabsModule,
|
||||
MatMenuModule, MatProgressBarModule, MatSidenavModule, MatSnackBarModule, MatToolbarModule,
|
||||
MatTooltipModule, MatExpansionModule
|
||||
MatTooltipModule, MatExpansionModule, MAT_DIALOG_DEFAULT_OPTIONS, MatDialogConfig
|
||||
} from '@angular/material';
|
||||
|
||||
export function modules() {
|
||||
@@ -40,6 +40,13 @@ export function modules() {
|
||||
|
||||
@NgModule({
|
||||
imports: modules(),
|
||||
providers: [
|
||||
MatDialogConfig,
|
||||
{
|
||||
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
||||
useValue: MAT_DIALOG_DEFAULT_OPTIONS
|
||||
}
|
||||
],
|
||||
exports: modules()
|
||||
})
|
||||
export class MaterialModule {}
|
||||
|
Reference in New Issue
Block a user