Pass AI enabled to frontend

This commit is contained in:
shamoon
2025-04-23 12:40:42 -07:00
parent 74aaf18630
commit 3186550fd7
8 changed files with 49 additions and 29 deletions

View File

@@ -294,6 +294,10 @@ export class DocumentDetailComponent
return this.settings.get(SETTINGS_KEYS.USE_NATIVE_PDF_VIEWER)
}
get aiEnabled(): boolean {
return this.settings.get(SETTINGS_KEYS.AI_ENABLED)
}
get archiveContentRenderType(): ContentRenderType {
return this.document?.archived_file_name
? this.getRenderType('application/pdf')