mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 06:37:07 +00:00
Show release notes for previous versions too
This commit is contained in:
@@ -44,7 +44,16 @@
|
|||||||
</v-card-title>
|
</v-card-title>
|
||||||
|
|
||||||
<v-card-text>
|
<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>
|
</v-card-text>
|
||||||
|
|
||||||
|
|
||||||
@@ -127,6 +136,8 @@ export default {
|
|||||||
clientVersion: process.env.DOUGAL_FRONTEND_VERSION ?? "(unknown)",
|
clientVersion: process.env.DOUGAL_FRONTEND_VERSION ?? "(unknown)",
|
||||||
serverVersion: null,
|
serverVersion: null,
|
||||||
versionHistory: null,
|
versionHistory: null,
|
||||||
|
releaseHistory: [],
|
||||||
|
releaseShown: null,
|
||||||
page: "support"
|
page: "support"
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -138,7 +149,8 @@ export default {
|
|||||||
this.serverVersion = version?.tag ?? "(unknown)";
|
this.serverVersion = version?.tag ?? "(unknown)";
|
||||||
}
|
}
|
||||||
if (!this.versionHistory) {
|
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;
|
this.versionHistory = history?.[this.serverVersion.replace(/-.*$/, "")] ?? null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user