Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ export const ApiKeysList = ({
</ActionButton>
</ConfirmRollKeyAlert>
</div>

{rollKeyMutation.isError && (
<Alert variant="destructive">
<AlertTitle>Could not roll API key</AlertTitle>
<AlertDescription>{rollKeyMutation.error.message}</AlertDescription>
</Alert>
)}
<ApiKeyInfo />

{deleteKeyMutation.isSuccess && deleteKeyMutation.variables && (
Expand Down
6 changes: 5 additions & 1 deletion packages/zudoku/src/lib/plugins/api-keys/SettingsApiKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ export const SettingsApiKeys = ({ service }: { service: ApiKeyService }) => {
<ItemTitle>Verified email required</ItemTitle>
<ItemDescription>
You need to verify your email to access API keys.
<Button onClick={refresh}>Refresh</Button>
</ItemDescription>
</ItemContent>
<ItemActions>
<Button onClick={refresh}>
Refresh
</Button>
</ItemActions>

{supportsEmailVerification && (
<ItemActions>
Expand Down
Loading