Change experiment button styling (#93)

* Change button styling

* Fix prettier
This commit is contained in:
arcticfly
2023-07-25 11:41:02 -07:00
committed by GitHub
parent fa61c9c472
commit 223b990005
3 changed files with 4 additions and 15 deletions

View File

@@ -36,17 +36,9 @@ export const DeleteButton = () => {
return ( return (
<> <>
<Button <Button size="sm" variant="ghost" colorScheme="red" fontWeight="normal" onClick={onOpen}>
size="sm"
variant={{ base: "outline", lg: "ghost" }}
colorScheme="red"
fontWeight="normal"
onClick={onOpen}
>
<Icon as={BsTrash} boxSize={4} /> <Icon as={BsTrash} boxSize={4} />
<Text display={{ base: "none", lg: "block" }} ml={2}> <Text ml={2}>Delete Experiment</Text>
Delete Experiment
</Text>
</Button> </Button>
<AlertDialog isOpen={isOpen} leastDestructiveRef={cancelRef} onClose={onClose}> <AlertDialog isOpen={isOpen} leastDestructiveRef={cancelRef} onClose={onClose}>

View File

@@ -24,7 +24,7 @@ export const HeaderButtons = () => {
colorScheme={canModify ? undefined : "orange"} colorScheme={canModify ? undefined : "orange"}
bgColor={canModify ? undefined : "orange.400"} bgColor={canModify ? undefined : "orange.400"}
minW={0} minW={0}
variant={canModify ? "ghost" : "solid"} variant={{ base: "solid", md: canModify ? "ghost" : "solid" }}
> >
{isForking ? <Spinner boxSize={5} /> : <Icon as={TbGitFork} boxSize={5} />} {isForking ? <Spinner boxSize={5} /> : <Icon as={TbGitFork} boxSize={5} />}
<Text ml={2}>Fork</Text> <Text ml={2}>Fork</Text>

View File

@@ -157,7 +157,6 @@ export const queryModel = defineTask<QueryModelJob>("queryModel", async (task) =
}); });
export const queueQueryModel = async (cellId: string, stream: boolean) => { export const queueQueryModel = async (cellId: string, stream: boolean) => {
console.log("queueQueryModel", cellId, stream);
await Promise.all([ await Promise.all([
prisma.scenarioVariantCell.update({ prisma.scenarioVariantCell.update({
where: { where: {
@@ -168,8 +167,6 @@ export const queueQueryModel = async (cellId: string, stream: boolean) => {
errorMessage: null, errorMessage: null,
}, },
}), }),
queryModel.enqueue({ cellId, stream }),
await queryModel.enqueue({ cellId, stream }),
console.log("queued"),
]); ]);
}; };