Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(console): added ability to refresh data in table resources #7164

Merged
merged 2 commits into from
Sep 24, 2024
Merged
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
@@ -1,3 +1,5 @@
import { ArrowPathIcon } from "@heroicons/react/24/outline";
import { Button } from "@wingconsole/design-system";
import { memo } from "react";

import { trpc } from "../../../trpc.js";
Expand All @@ -18,6 +20,15 @@ export const CustomResourceTable = memo(
<div className="h-full flex-1 flex flex-col text-sm pl-4">
<div className="flex flex-col gap-2">
<div className="flex flex-col space-y-1">
<div className="flex items-center gap-1 justify-end">
<Button
label="Refresh"
icon={ArrowPathIcon}
onClick={() => {
tableScan.refetch();
}}
/>
</div>
<div className="flex items-center gap-2 justify-end">
{tableScan.data && (
<TableInteraction
Expand Down