Skip to content

Commit

Permalink
Resolved issue where user API keys needed admin role
Browse files Browse the repository at this point in the history
  • Loading branch information
ivntsng committed Nov 11, 2024
1 parent 55986fe commit da5b610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/pages/APIKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const SingleKey = ({ token, permissions, onDelete }: SingleKeyProps) => {
</Button>
<Button
onClick={() => setIsKeyVisible(!isKeyVisible)}
variant="default"
variant="outline"
>
{isKeyVisible ? "Hide" : "Show Key"}
</Button>
Expand Down Expand Up @@ -150,7 +150,7 @@ const APIKeys = () => {

return (
<RequireAuthentication>
<div className="container mx-auto max-w-4xl shadow-md rounded-lg bg-gray-1 text-gray-12 border bg-card text-card-foreground relative">
<div className="container mx-auto max-w-4xl shadow-md rounded-lg bg-gray-12 text-gray-2 border bg-card text-card-foreground relative">
<div className="p-6">
<h1 className="text-3xl font-extrabold mb-4">API Keys</h1>
{apiKeys === null ? (
Expand Down Expand Up @@ -191,7 +191,7 @@ const APIKeys = () => {
</label>
<Button
onClick={createKey}
variant="default"
variant="outline"
disabled={creatingKey}
>
Create {readonly ? "Read-only " : "Read-write "}Key
Expand Down

0 comments on commit da5b610

Please sign in to comment.