Add feature flag check for gamemaster tools display

This commit is contained in:
2026-01-30 05:46:47 +00:00
parent d7cf0d6fd9
commit fffaa01a73

View File

@@ -87,11 +87,13 @@ import ProfessorPokeball from '../components/shared/ProfessorPokeball.vue';
import { useChallongeApiKey } from '../composables/useChallongeApiKey.js'; import { useChallongeApiKey } from '../composables/useChallongeApiKey.js';
import { useChallongeOAuth } from '../composables/useChallongeOAuth.js'; import { useChallongeOAuth } from '../composables/useChallongeOAuth.js';
import { useDiscordOAuth } from '../composables/useDiscordOAuth.js'; import { useDiscordOAuth } from '../composables/useDiscordOAuth.js';
import { useFeatureFlags } from '../composables/useFeatureFlags.js';
// Get auth status for all providers // Get auth status for all providers
const { isKeyStored } = useChallongeApiKey(); const { isKeyStored } = useChallongeApiKey();
const challongeOAuth = useChallongeOAuth(); const challongeOAuth = useChallongeOAuth();
const discordOAuth = useDiscordOAuth(); const discordOAuth = useDiscordOAuth();
const { isEnabled } = useFeatureFlags();
// Check if any Challonge auth method is active // Check if any Challonge auth method is active
const hasChallongeAuth = computed(() => { const hasChallongeAuth = computed(() => {
@@ -107,6 +109,11 @@ const hasDiscordAuth = computed(() => {
const hasAnyAuth = computed(() => { const hasAnyAuth = computed(() => {
return hasChallongeAuth.value || hasDiscordAuth.value; return hasChallongeAuth.value || hasDiscordAuth.value;
}); });
// Check if gamemaster features are enabled
const showGamemasterTools = computed(() => {
return isEnabled('gamemaster-features');
});
</script> </script>
<style scoped> <style scoped>