Show release notes for previous versions too

This commit is contained in:
D. Berge
2025-08-11 14:59:22 +02:00
parent 02477b071b
commit e368183bf0

View File

@@ -44,7 +44,16 @@
</v-card-title>
<v-card-text>
<pre>{{ versionHistory }}</pre>
<v-carousel v-model="releaseShown"
:continuous="false"
:cycle="false"
:show-arrows="true"
:hide-delimiters="true"
>
<v-carousel-item v-for="release in releaseHistory">
<pre>{{release}}</pre>
</v-carousel-item>
</v-carousel>
</v-card-text>
@@ -127,6 +136,8 @@ export default {
clientVersion: process.env.DOUGAL_FRONTEND_VERSION ?? "(unknown)",
serverVersion: null,
versionHistory: null,
releaseHistory: [],
releaseShown: null,
page: "support"
};
},
@@ -138,7 +149,8 @@ export default {
this.serverVersion = version?.tag ?? "(unknown)";
}
if (!this.versionHistory) {
const history = await this.api(['/version/history?count=1', {}, null, {silent:true}]);
const history = await this.api(['/version/history?count=3', {}, null, {silent:true}]);
this.releaseHistory = history;
this.versionHistory = history?.[this.serverVersion.replace(/-.*$/, "")] ?? null;
}
},