rtl direction for arabic added
parent
1143770632
commit
92888014a2
|
|
@ -36,6 +36,10 @@ export class PagesService {
|
|||
this.rootPagesSubject.next(val);
|
||||
}
|
||||
|
||||
get isRtl() {
|
||||
return ['ar'].indexOf(this.rootPage?.slug) !== -1;
|
||||
}
|
||||
|
||||
get editMode() {
|
||||
return this.editModeSubject.value;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<grid></grid>
|
||||
<grid [class.rtl]="isRtl"></grid>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
.rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
|
@ -18,6 +18,10 @@ export class AppComponent {
|
|||
});
|
||||
}
|
||||
|
||||
get isRtl() {
|
||||
return this.pagesService.isRtl;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.pagesService.root({include:'children'}).subscribe(
|
||||
res => { this.pagesService.rootPages = res }
|
||||
|
|
|
|||
Loading…
Reference in New Issue