Skip to content
Merged
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
2 changes: 1 addition & 1 deletion frontends/dashboard/src/components/ApiKeyGenerateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const ApiKeyGenerateModal = (props: {
if (props.openModal() && !prevOpen) {
setApiKey("");
setName("");
setRole(1);
setRole(2);
setGenerated(false);
}

Expand Down
6 changes: 3 additions & 3 deletions frontends/dashboard/src/components/ApiKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,19 @@ export const ApiKeys = () => {
</div>
</Show>
<Show when={(apiKeysQuery.data?.length || -1) > 0}>
<div class="inline-block min-w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
<div class="inline-block w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
<Show when={table()}>
{(table) => <TanStackTable table={table()} />}
</Show>
</div>
</Show>
</div>
<Show when={userApiKeysQuery.data?.length !== 0}>
<div class="flex items-end justify-between pb-2 pt-2">
<div class="mt-4 flex items-end justify-between pb-2 pt-2">
<div class="text-lg font-medium">User API Keys (deprecated)</div>
</div>
<Show when={(userApiKeysQuery.data?.length || -1) > 0}>
<div class="inline-block min-w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
<div class="inline-block w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
<Show when={userApiKeyTable()}>
{(table) => <TanStackTable table={table()} />}
</Show>
Expand Down