mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-22 01:55:49 -06:00
Use correct direction for RTL content
This commit is contained in:
committed by
Trenton H
parent
fb20c92c51
commit
bc318416cf
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user