✨ Add feature flag check for gamemaster tools display
This commit is contained in:
@@ -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');
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user