Use correct direction for RTL content

This commit is contained in:
Michael Shamoon
2023-01-01 08:59:43 -08:00
committed by Trenton H
parent fb20c92c51
commit bc318416cf
5 changed files with 22 additions and 1 deletions

View File

@@ -135,6 +135,13 @@ export class DocumentDetailComponent
: this.metadata?.original_mime_type
}
get isRTL() {
if (!this.metadata || !this.metadata.lang) return false
else {
return ['ar', 'he', 'fe'].includes(this.metadata.lang)
}
}
ngOnInit(): void {
this.documentForm.valueChanges
.pipe(takeUntil(this.unsubscribeNotifier))