website: always show build version in version dropdown
Signed-off-by: Jens Langhammer <jens@goauthentik.io> #3940
This commit is contained in:
parent
9397598376
commit
ecf9c8fcdd
|
@ -48,15 +48,15 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
type: "dropdown",
|
||||
label: `Version: latest`,
|
||||
label: `Version: ${releases[0].replace(
|
||||
/releases\/\d+\/v/,
|
||||
""
|
||||
)}`,
|
||||
position: "right",
|
||||
items: releases.map((release) => {
|
||||
const subdomain = release
|
||||
.replace(/releases\/\d+\/v/, "")
|
||||
.replace(".", "-");
|
||||
const label =
|
||||
"Version: " +
|
||||
release.replace(/releases\/\d+\/v/, "");
|
||||
const version = release.replace(/releases\/\d+\/v/, "");
|
||||
const subdomain = version.replace(".", "-");
|
||||
const label = `Version: ${version}`;
|
||||
return {
|
||||
label: label,
|
||||
href: `https://version-${subdomain}.goauthentik.io`,
|
||||
|
|
Reference in New Issue