Use correct direction for RTL content

This commit is contained in:
Michael Shamoon authored and Trenton H committed 2023-01-03 12:42:57 -08:00
1 parent 0fd51e35e1
commit da38efebdf
5 files changed
+22 -1

No files matched your search

@@ -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))