From d1ad6a008dc0a77a472f9012ef8bbd068f21d648 Mon Sep 17 00:00:00 2001 From: Retr0-01 Date: Tue, 23 Sep 2025 12:25:58 +0300 Subject: [PATCH] improve layout confirmation messages --- src/pages/cluster/components/nodes-list.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/cluster/components/nodes-list.tsx b/src/pages/cluster/components/nodes-list.tsx index bfdcd70..51d6250 100644 --- a/src/pages/cluster/components/nodes-list.tsx +++ b/src/pages/cluster/components/nodes-list.tsx @@ -108,7 +108,7 @@ const NodesList = ({ nodes }: NodeListProps) => { const onRevert = () => { if ( - window.confirm("Are you sure you want to revert layout changes?") && + window.confirm("Are you sure you want to revert any changes made?") && data?.version != null ) { revertChanges.mutate(data?.version + 1); @@ -117,7 +117,7 @@ const NodesList = ({ nodes }: NodeListProps) => { const onApply = () => { if ( - window.confirm("Are you sure you want to revert layout changes?") && + window.confirm("Are you sure you want to apply your layout changes?") && data?.version != null ) { applyChanges.mutate(data?.version + 1); @@ -247,7 +247,7 @@ const NodesList = ({ nodes }: NodeListProps) => { ` (${Math.round( (item.dataPartition.available / item.dataPartition.total) * - 100 + 100 )}%)`}

@@ -262,8 +262,8 @@ const NodesList = ({ nodes }: NodeListProps) => { {item.draining ? "Draining" : item.isUp - ? "Active" - : "Inactive"} + ? "Active" + : "Inactive"}