diff --git a/src/components/KillButton/index.tsx b/src/components/KillButton/index.tsx index 71a5442..d9d330b 100644 --- a/src/components/KillButton/index.tsx +++ b/src/components/KillButton/index.tsx @@ -8,6 +8,7 @@ import DialogContent from '@mui/material/DialogContent'; import Dialog from '@mui/material/Dialog'; import Paper from "@mui/material/Paper"; import Typography from "@mui/material/Typography"; +import Tooltip from '@mui/material/Tooltip'; import { KillRunPayload } from "../../lib/teuthologyAPI.d"; import { useSession } from "../../lib/teuthologyAPI"; @@ -32,7 +33,7 @@ export default function KillButton(props: KillButtonProps) { const mutation: UseMutationResult = props.mutation; const sessionQuery = useSession(); const loggedUser = sessionQuery.data?.session?.username; - + const isUserAdmin = sessionQuery.data?.session?.isUserAdmin; const owner = props.payload["--owner"].toLowerCase() const isOwner = (loggedUser?.toLowerCase() == owner) || (`scheduled_${loggedUser?.toLowerCase()}@teuthology` == owner) @@ -49,16 +50,21 @@ export default function KillButton(props: KillButtonProps) { return (
+ + + +