Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

refactor to update_available

Michael Shamoonb58550bb790b
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html
index 208100af8..e201a7d6e 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.html
+++ b/src-ui/src/app/components/app-frame/app-frame.component.html
@@ -185,7 +185,7 @@
<li class="nav-item mt-2">
<div class="px-3 py-2 text-muted small d-flex align-items-center flex-wrap">
<div class="me-3">{{ versionString }}</div>
- <div *ngIf="appRemoteVersion?.greater_than_current" class="version-check">
+ <div *ngIf="appRemoteVersion?.update_available" class="version-check">
<ng-template #updatePopContent>
<span class="small">Paperless-ngx v{{ appRemoteVersion.version }} <ng-container i18n>is available.</ng-container><br/><ng-container i18n>Click to view.</ng-container></span>
</ng-template>
diff --git a/src-ui/src/app/services/rest/remote-version.service.ts b/src-ui/src/app/services/rest/remote-version.service.ts
index a39c1f2c5..9b1def363 100644
--- a/src-ui/src/app/services/rest/remote-version.service.ts
+++ b/src-ui/src/app/services/rest/remote-version.service.ts
@@ -5,7 +5,7 @@ import { environment } from 'src/environments/environment'
export interface AppRemoteVersion {
version: string
- greater_than_current: boolean
+ update_available: boolean
}
@Injectable({
diff --git a/src/documents/views.py b/src/documents/views.py
index 858a3bab6..141331169 100644
--- a/src/documents/views.py
+++ b/src/documents/views.py
@@ -701,6 +701,6 @@ class RemoteVersionView(GenericAPIView):
return Response(
{
"version": remote_version,
- "greater_than_current": is_greater,
+ "update_available": is_greater,
},
)