Skip to content

Commit

Permalink
Chore: dark mode for workflow builder
Browse files Browse the repository at this point in the history
  • Loading branch information
avivash committed Nov 13, 2023
1 parent 15e1b50 commit f02f026
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/auth/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export async function waitForDataRoot(username: string): Promise<void> {
if (!reference) throw new Error('Program must be initialized to check for data root')

let dataRoot = await reference.dataRoot.lookup(username)
console.log('dataRoot', dataRoot.toString())

if (dataRoot.toString() !== EMPTY_CID) return

return new Promise((resolve) => {
Expand All @@ -136,7 +136,7 @@ export async function waitForDataRoot(username: string): Promise<void> {

const dataRootInterval = setInterval(async () => {
dataRoot = await reference.dataRoot.lookup(username)
console.log('dataRoot', dataRoot.toString())

if (dataRoot.toString() === EMPTY_CID && attempt < maxRetries) {
attempt++
return
Expand Down
2 changes: 1 addition & 1 deletion src/routes/workflows/components/WorkflowBuilder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
bind:imageModalOpen
bind:uploadedImage={$workflowsStore.builder.savedImage}
/>
{#each $workflowsStore.builder.nodes as { functionName, position, connections, ...rest }, nodeIndex}
{#each $workflowsStore.builder.nodes as { functionName, position, connections, params, ...rest }, nodeIndex}
<Node
bind:functionName
bind:connections
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<!-- Only allow nodes other than the first to be deleted -->
<button
on:click={() => handleDelete(node)}
class="btn btn-ghost w-auto h-auto p-1 hover:bg-transparent hover:scale-105"
class="btn btn-ghost w-auto h-auto p-1 dark:text-base-content hover:bg-transparent hover:scale-105"
disabled={id === '1'}
>
<Trash />
Expand Down

0 comments on commit f02f026

Please sign in to comment.