Skip to content

Commit

Permalink
publish new version
Browse files Browse the repository at this point in the history
  • Loading branch information
l1xnan committed May 10, 2024
1 parent 6ea1d65 commit b8d6871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "duckling",
"private": true,
"version": "0.0.33",
"version": "0.0.34",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/sidebar/SideToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function SideToolbar({
}

// TODO: Remove the root element restriction
const isRoot = selectedNode?.type == 'root';
// const isRoot = selectedNode?.type == 'root';
const d = useDialog();
return (
<>
Expand All @@ -91,15 +91,15 @@ export function SideToolbar({
<DatabaseDialog />
<TooltipButton
tooltip="DB setting"
disabled={!isRoot}
disabled={!selectedNode}
onClick={d.trigger}
>
<IconDatabaseCog />
</TooltipButton>
{/* refresh tree */}
<TooltipButton
tooltip="Refresh DB"
disabled={!isRoot}
disabled={!selectedNode}
onClick={handleRefresh}
>
<IconRefresh />
Expand Down

0 comments on commit b8d6871

Please # to comment.