Change experiment button styling (#93)
* Change button styling * Fix prettier
This commit is contained in:
@@ -36,17 +36,9 @@ export const DeleteButton = () => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
size="sm"
|
||||
variant={{ base: "outline", lg: "ghost" }}
|
||||
colorScheme="red"
|
||||
fontWeight="normal"
|
||||
onClick={onOpen}
|
||||
>
|
||||
<Button size="sm" variant="ghost" colorScheme="red" fontWeight="normal" onClick={onOpen}>
|
||||
<Icon as={BsTrash} boxSize={4} />
|
||||
<Text display={{ base: "none", lg: "block" }} ml={2}>
|
||||
Delete Experiment
|
||||
</Text>
|
||||
<Text ml={2}>Delete Experiment</Text>
|
||||
</Button>
|
||||
|
||||
<AlertDialog isOpen={isOpen} leastDestructiveRef={cancelRef} onClose={onClose}>
|
||||
|
||||
@@ -24,7 +24,7 @@ export const HeaderButtons = () => {
|
||||
colorScheme={canModify ? undefined : "orange"}
|
||||
bgColor={canModify ? undefined : "orange.400"}
|
||||
minW={0}
|
||||
variant={canModify ? "ghost" : "solid"}
|
||||
variant={{ base: "solid", md: canModify ? "ghost" : "solid" }}
|
||||
>
|
||||
{isForking ? <Spinner boxSize={5} /> : <Icon as={TbGitFork} boxSize={5} />}
|
||||
<Text ml={2}>Fork</Text>
|
||||
|
||||
@@ -157,7 +157,6 @@ export const queryModel = defineTask<QueryModelJob>("queryModel", async (task) =
|
||||
});
|
||||
|
||||
export const queueQueryModel = async (cellId: string, stream: boolean) => {
|
||||
console.log("queueQueryModel", cellId, stream);
|
||||
await Promise.all([
|
||||
prisma.scenarioVariantCell.update({
|
||||
where: {
|
||||
@@ -168,8 +167,6 @@ export const queueQueryModel = async (cellId: string, stream: boolean) => {
|
||||
errorMessage: null,
|
||||
},
|
||||
}),
|
||||
|
||||
await queryModel.enqueue({ cellId, stream }),
|
||||
console.log("queued"),
|
||||
queryModel.enqueue({ cellId, stream }),
|
||||
]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user