diff --git a/README.md b/README.md index 7d5a6b9..5b29e61 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ services: - ./data:/var/lib/garage/data restart: unless-stopped ports: - - 3900:3900 - - 3901:3901 - - 3902:3903 - - 3903:3903 + - 3900:3900 + - 3901:3901 + - 3902:3903 + - 3903:3903 webui: image: khairul169/garage-webui:latest @@ -62,7 +62,7 @@ services: Get the latest binary from the [release page](https://github.com/khairul169/garage-webui/releases/latest) according to your OS architecture. For example: ```sh -$ wget -O garage-webui https://github.com/khairul169/garage-webui/releases/download/1.0.5/garage-webui-v1.0.5-linux-amd64 +$ wget -O garage-webui https://github.com/khairul169/garage-webui/releases/download/1.0.6/garage-webui-v1.0.6-linux-amd64 $ chmod +x garage-webui $ sudo cp garage-webui /usr/local/bin ``` diff --git a/package.json b/package.json index 4d6b5ab..64b3de5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "garage-webui", "private": true, - "version": "1.0.5", + "version": "1.0.6", "type": "module", "scripts": { "dev:client": "vite", @@ -48,4 +48,4 @@ "typescript-eslint": "^8.0.0", "vite": "^5.4.0" } -} \ No newline at end of file +} diff --git a/src/pages/cluster/components/assign-node-dialog.tsx b/src/pages/cluster/components/assign-node-dialog.tsx index c2a7fa6..acb0af0 100644 --- a/src/pages/cluster/components/assign-node-dialog.tsx +++ b/src/pages/cluster/components/assign-node-dialog.tsx @@ -66,7 +66,8 @@ const AssignNodeDialog = () => { }, [data]); const zoneList = useMemo(() => { - const list = cluster?.nodes + const nodes = cluster?.nodes || cluster?.knownNodes || []; + const list = nodes .flatMap((i) => { const role = layout?.roles.find((role) => role.id === i.id); const staged = layout?.stagedRoleChanges.find( @@ -83,7 +84,8 @@ const AssignNodeDialog = () => { }, [cluster, layout]); const tagsList = useMemo(() => { - const list = cluster?.nodes + const nodes = cluster?.nodes || cluster?.knownNodes || []; + const list = nodes .flatMap((i) => { const role = layout?.roles.find((role) => role.id === i.id); const staged = layout?.stagedRoleChanges.find( diff --git a/src/pages/cluster/components/nodes-list.tsx b/src/pages/cluster/components/nodes-list.tsx index da93c63..bfdcd70 100644 --- a/src/pages/cluster/components/nodes-list.tsx +++ b/src/pages/cluster/components/nodes-list.tsx @@ -268,7 +268,9 @@ const NodesList = ({ nodes }: NodeListProps) => { = items.length - 2 ? "top" : "bottom"} + vertical={ + idx > 2 && idx >= items.length - 2 ? "top" : "bottom" + } >