Skip to content

Commit 3507d0e

Browse files
committed
fix: Tweak copy dropdown item names
1 parent 6c4060f commit 3507d0e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/features/clusters/components/ClusterCard.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ export function ClusterCard({ cluster }: { cluster: Cluster; }) {
127127
}, [terminateCluster, cluster.id, cluster.name, isSelfManaged, queryClient]);
128128

129129
const onCopyFQDNClick = useCallback(() => {
130-
navigator.clipboard.writeText(cluster.fqdn || '');
131-
toast.info('FQDN copied to clipboard');
130+
void navigator.clipboard.writeText(cluster.fqdn!);
131+
toast.info('Host name copied to clipboard!');
132132
}, [cluster.fqdn]);
133133

134134
const onCopyAPIClick = useCallback(() => {
135-
navigator.clipboard.writeText(`https://${cluster.fqdn}`);
136-
toast.info('API url copied to clipboard');
135+
void navigator.clipboard.writeText(`https://${cluster.fqdn}`);
136+
toast.info('API URL copied to clipboard!');
137137
}, [cluster.fqdn]);
138138

139139
const menuItems = [
@@ -149,12 +149,12 @@ export function ClusterCard({ cluster }: { cluster: Cluster; }) {
149149
),
150150
isActive && view && cluster.fqdn && (
151151
<DropdownMenuItem onClick={onCopyFQDNClick} disabled={signingOut}>
152-
Copy FQDN
152+
Copy host name
153153
</DropdownMenuItem>
154154
),
155155
isActive && view && cluster.fqdn && (
156156
<DropdownMenuItem onClick={onCopyAPIClick} disabled={signingOut}>
157-
Copy API Url
157+
Copy API URL
158158
</DropdownMenuItem>
159159
),
160160
isActive && view && !!operationsUrl && !auth.isLoading && auth.user && (

0 commit comments

Comments
 (0)