From fffaa01a73cc64d38c251eeecaa8c7a8b3ab4698 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Fri, 30 Jan 2026 05:46:47 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20feature=20flag=20check=20for?= =?UTF-8?q?=20gamemaster=20tools=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/websites/pokedex.online/src/views/Home.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/websites/pokedex.online/src/views/Home.vue b/code/websites/pokedex.online/src/views/Home.vue index 5cd878f..6d9a258 100644 --- a/code/websites/pokedex.online/src/views/Home.vue +++ b/code/websites/pokedex.online/src/views/Home.vue @@ -87,11 +87,13 @@ import ProfessorPokeball from '../components/shared/ProfessorPokeball.vue'; import { useChallongeApiKey } from '../composables/useChallongeApiKey.js'; import { useChallongeOAuth } from '../composables/useChallongeOAuth.js'; import { useDiscordOAuth } from '../composables/useDiscordOAuth.js'; +import { useFeatureFlags } from '../composables/useFeatureFlags.js'; // Get auth status for all providers const { isKeyStored } = useChallongeApiKey(); const challongeOAuth = useChallongeOAuth(); const discordOAuth = useDiscordOAuth(); +const { isEnabled } = useFeatureFlags(); // Check if any Challonge auth method is active const hasChallongeAuth = computed(() => { @@ -107,6 +109,11 @@ const hasDiscordAuth = computed(() => { const hasAnyAuth = computed(() => { return hasChallongeAuth.value || hasDiscordAuth.value; }); + +// Check if gamemaster features are enabled +const showGamemasterTools = computed(() => { + return isEnabled('gamemaster-features'); +});