mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	refactor to update_available
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@ import { environment } from 'src/environments/environment'
 | 
			
		||||
 | 
			
		||||
export interface AppRemoteVersion {
 | 
			
		||||
  version: string
 | 
			
		||||
  greater_than_current: boolean
 | 
			
		||||
  update_available: boolean
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@Injectable({
 | 
			
		||||
 
 | 
			
		||||
@@ -701,6 +701,6 @@ class RemoteVersionView(GenericAPIView):
 | 
			
		||||
        return Response(
 | 
			
		||||
            {
 | 
			
		||||
                "version": remote_version,
 | 
			
		||||
                "greater_than_current": is_greater,
 | 
			
		||||
                "update_available": is_greater,
 | 
			
		||||
            },
 | 
			
		||||
        )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user