mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	refactor to update_available
This commit is contained in:
		| @@ -185,7 +185,7 @@ | |||||||
|           <li class="nav-item mt-2"> |           <li class="nav-item mt-2"> | ||||||
|             <div class="px-3 py-2 text-muted small d-flex align-items-center flex-wrap"> |             <div class="px-3 py-2 text-muted small d-flex align-items-center flex-wrap"> | ||||||
|               <div class="me-3">{{ versionString }}</div> |               <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> |                 <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> |                   <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> |                 </ng-template> | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ import { environment } from 'src/environments/environment' | |||||||
|  |  | ||||||
| export interface AppRemoteVersion { | export interface AppRemoteVersion { | ||||||
|   version: string |   version: string | ||||||
|   greater_than_current: boolean |   update_available: boolean | ||||||
| } | } | ||||||
|  |  | ||||||
| @Injectable({ | @Injectable({ | ||||||
|   | |||||||
| @@ -701,6 +701,6 @@ class RemoteVersionView(GenericAPIView): | |||||||
|         return Response( |         return Response( | ||||||
|             { |             { | ||||||
|                 "version": remote_version, |                 "version": remote_version, | ||||||
|                 "greater_than_current": is_greater, |                 "update_available": is_greater, | ||||||
|             }, |             }, | ||||||
|         ) |         ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon