Skip to content

Commit

Permalink
Select the next version by default on the next branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephusPaye committed Apr 8, 2023
1 parent 453a5d0 commit 9b4bdd2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions docs-src/DocsSidebar.vue
Expand Up @@ -75,6 +75,8 @@ import DocsBrand from "./DocsBrand.vue";
import UiIcon from "@/UiIcon.vue";
import UiSelect from "@/UiSelect.vue";
import version from "../build/version.mjs";
export default {
components: {
DocsBrand,
Expand All @@ -97,12 +99,18 @@ export default {
{ label: "1.2.x", value: "1.2.1" },
{ label: "1.3.x", value: "1.3.2" },
{ label: "1.4.x", value: "1.4.0" },
{ label: "next", value: "next" }
{ label: "next", value: "next" },
],
selectedVersion: {
label: "1.4.x",
value: "1.4.0",
},
selectedVersion:
version === "next"
? {
label: "next",
value: "next",
}
: {
label: "1.4.x",
value: "1.4.0",
},
menu,
};
},
Expand Down

0 comments on commit 9b4bdd2

Please sign in to comment.