Skip to content

Commit 5eb44a7

Browse files
authored
[Feature]: Add Refresh button on Run details page #2748 (#2773)
1 parent f3c7efd commit 5eb44a7

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

frontend/src/pages/Runs/Details/index.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ export const RunDetailsPage: React.FC = () => {
3131
const paramRunId = params.runId ?? '';
3232
const [pushNotification] = useNotifications();
3333

34-
const { data: runData, error: runError } = useGetRunQuery({
34+
const {
35+
data: runData,
36+
error: runError,
37+
isLoading,
38+
refetch,
39+
} = useGetRunQuery({
3540
project_name: paramProjectName,
3641
id: paramRunId,
3742
});
@@ -148,6 +153,13 @@ export const RunDetailsPage: React.FC = () => {
148153
{/*<Button onClick={deleteClickHandle} disabled={isDisabledDeleteButton}>*/}
149154
{/* {t('common.delete')}*/}
150155
{/*</Button>*/}
156+
157+
<Button
158+
iconName="refresh"
159+
disabled={isLoading}
160+
ariaLabel={t('common.refresh')}
161+
onClick={refetch}
162+
/>
151163
</>
152164
}
153165
/>

0 commit comments

Comments
 (0)