Enable queryKey & queryKeys on Badge Hub dashboard > Query

This commit is contained in:
Serkan Reis 2023-02-28 17:17:18 +03:00
parent f1b12ad56d
commit 12a95097f6
2 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@ export const QUERY_LIST: QueryListItem[] = [
{ id: 'config', name: 'Config', description: 'View current config' },
{ id: 'getBadge', name: 'Query Badge', description: 'Query a badge by ID' },
{ id: 'getBadges', name: 'Query Badges', description: 'Query a list of badges' },
// { id: 'getKey', name: 'Query Key', description: 'Query a key by ID to see if it's whitelisted' },
// { id: 'getKeys', name: 'Query Keys', description: 'Query the list of whitelisted keys' },
{ id: 'getKey', name: 'Query Key', description: 'Query a key by ID to see if it's whitelisted' },
{ id: 'getKeys', name: 'Query Keys', description: 'Query the list of whitelisted keys' },
]
export interface DispatchQueryProps {

View File

@ -154,7 +154,7 @@ const BadgeHubQueryPage: NextPage = () => {
))}
</select>
</FormControl>
<Conditional test={type === 'getBadge' || type === 'getKey'}>
<Conditional test={type === 'getBadge' || type === 'getKey' || type === 'getKeys'}>
<NumberInput {...idState} />
</Conditional>
<Conditional test={type === 'getKey'}>