From 634a0581c68e01d7f5155f369e1350010e7f7e91 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Sun, 25 Sep 2022 12:39:39 +0200 Subject: feat: load northstar version in app state --- src-vue/src/utils/ReleaseCanal.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src-vue/src/utils/ReleaseCanal.ts (limited to 'src-vue/src/utils/ReleaseCanal.ts') diff --git a/src-vue/src/utils/ReleaseCanal.ts b/src-vue/src/utils/ReleaseCanal.ts new file mode 100644 index 00000000..ca1ba8a5 --- /dev/null +++ b/src-vue/src/utils/ReleaseCanal.ts @@ -0,0 +1,4 @@ +export enum ReleaseCanal { + RELEASE = 'Northstar', + RELEASE_CANDIDATE = 'NorthstarReleaseCandidate' +} -- cgit v1.2.3 From 02127ed8793e5344c28fa9c7c2c16c7a0b3f3ae9 Mon Sep 17 00:00:00 2001 From: Alystrasz Date: Mon, 3 Oct 2022 21:41:49 +0200 Subject: fix: address options() typing issue --- src-vue/src/components/PlayButton.vue | 3 +-- src-vue/src/utils/ReleaseCanal.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src-vue/src/utils/ReleaseCanal.ts') diff --git a/src-vue/src/components/PlayButton.vue b/src-vue/src/components/PlayButton.vue index e2ee2bcc..8e0b4149 100644 --- a/src-vue/src/components/PlayButton.vue +++ b/src-vue/src/components/PlayButton.vue @@ -36,8 +36,7 @@ export default defineComponent({ return Object.keys(ReleaseCanal).map(function (v) { return { key: v, - // @ts-ignore - value: ReleaseCanal[v] + value: Object.keys(ReleaseCanal)[Object.values(ReleaseCanal).indexOf(v)] } }); } diff --git a/src-vue/src/utils/ReleaseCanal.ts b/src-vue/src/utils/ReleaseCanal.ts index ca1ba8a5..9363aa25 100644 --- a/src-vue/src/utils/ReleaseCanal.ts +++ b/src-vue/src/utils/ReleaseCanal.ts @@ -1,4 +1,4 @@ export enum ReleaseCanal { - RELEASE = 'Northstar', - RELEASE_CANDIDATE = 'NorthstarReleaseCandidate' + RELEASE = 'Northstar', + RELEASE_CANDIDATE = 'NorthstarReleaseCandidate' } -- cgit v1.2.3