mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Use correct direction for RTL content
This commit is contained in:
parent
0fd51e35e1
commit
da38efebdf
5 changed files with 22 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue