{{update.updateTitle}}
- {{t('nightly', {version: update.currentVersion})}}
- {{t('installed')}}
- update.currentVersion">{{t('available')}}
+ @if (update.isOnNightlyInRelease) {
+ {{t('nightly', {version: update.currentVersion})}}
+ } @else if (update.isReleaseEqual) {
+ {{t('installed')}}
+ } @else if (update.isReleaseNewer && indx === 0) {
+ {{t('available')}}
+ }
{{t('published-label')}}{{update.publishDate | date: 'short'}}
diff --git a/UI/Web/src/app/announcements/_components/changelog/changelog.component.ts b/UI/Web/src/app/announcements/_components/changelog/changelog.component.ts
index 2be9caa0fe..65e7be632d 100644
--- a/UI/Web/src/app/announcements/_components/changelog/changelog.component.ts
+++ b/UI/Web/src/app/announcements/_components/changelog/changelog.component.ts
@@ -28,28 +28,4 @@ export class ChangelogComponent implements OnInit {
this.cdRef.markForCheck();
});
}
-
- isNightly(update: UpdateVersionEvent) {
- // Split the version numbers into arrays
- const updateVersionArr = update.updateVersion.split('.');
- const currentVersionArr = update.currentVersion.split('.');
-
- // Compare the first three parts of the version numbers
- for (let i = 0; i < 3; i++) {
- const updatePart = parseInt(updateVersionArr[i]);
- const currentPart = parseInt(currentVersionArr[i]);
-
- // If any part of the update version is less than the corresponding part of the current version, return true
- if (updatePart < currentPart) {
- return true;
- }
- // If any part of the update version is greater than the corresponding part of the current version, return false
- else if (updatePart > currentPart) {
- return false;
- }
- }
-
- // If all parts are equal, compare the length of the version numbers
- return updateVersionArr.length < currentVersionArr.length;
- }
}
diff --git a/openapi.json b/openapi.json
index 1996ba6885..350b85ba16 100644
--- a/openapi.json
+++ b/openapi.json
@@ -17345,8 +17345,8 @@
"type": "boolean"
},
"volumeNumber": {
- "type": "integer",
- "format": "int32",
+ "type": "number",
+ "format": "float",
"nullable": true
},
"chapterNumber": {
@@ -17377,6 +17377,13 @@
],
"type": "integer",
"format": "int32"
+ },
+ "isErrored": {
+ "type": "boolean"
+ },
+ "errorDetails": {
+ "type": "string",
+ "nullable": true
}
},
"additionalProperties": false
@@ -19500,6 +19507,18 @@
"type": "string",
"description": "Date of the publish",
"nullable": true
+ },
+ "isOnNightlyInRelease": {
+ "type": "boolean",
+ "description": "Is the server on a nightly within this release"
+ },
+ "isReleaseNewer": {
+ "type": "boolean",
+ "description": "Is the server on an older version"
+ },
+ "isReleaseEqual": {
+ "type": "boolean",
+ "description": "Is the server on this version"
}
},
"additionalProperties": false,