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: 'config', name: 'Config', description: 'View current config' },
{ id: 'getBadge', name: 'Query Badge', description: 'Query a badge by ID' }, { id: 'getBadge', name: 'Query Badge', description: 'Query a badge by ID' },
{ id: 'getBadges', name: 'Query Badges', description: 'Query a list of badges' }, { 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: '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: 'getKeys', name: 'Query Keys', description: 'Query the list of whitelisted keys' },
] ]
export interface DispatchQueryProps { export interface DispatchQueryProps {

View File

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