Skip to content

Commit

Permalink
Merge pull request #2723 from threefoldtech/development_copy_public_c…
Browse files Browse the repository at this point in the history
…onfig

add copy icon to all public config fields
  • Loading branch information
AlaaElattar authored May 20, 2024
2 parents 8c5839b + c47eec1 commit cb47e59
Showing 1 changed file with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,41 @@ export default {
const getNodeTwinDetailsCard = (): NodeDetailsCard[] => {
return [
{ name: "IPv4", value: props.node.publicConfig.ipv4 },
{
name: "IPv4",
value: props.node.publicConfig.ipv4,
icon: "mdi-content-copy",
callback: copy,
hint: "Copy the IPv4 to the clipboard.",
},
{
name: "IPv6",
value: props.node.publicConfig.ipv6,
icon: "mdi-content-copy",
callback: copy,
hint: "Copy the IPv6 to the clipboard.",
},
{ name: "GW4", value: props.node.publicConfig.gw4 },
{ name: "GW6", value: props.node.publicConfig.gw6 },
{ name: "Domain", value: props.node.publicConfig.domain },
{
name: "GW4",
value: props.node.publicConfig.gw4,
icon: "mdi-content-copy",
callback: copy,
hint: "Copy the GW4 to the clipboard.",
},
{
name: "GW6",
value: props.node.publicConfig.gw6,
icon: "mdi-content-copy",
callback: copy,
hint: "Copy the GW6 to the clipboard.",
},
{
name: "Domain",
value: props.node.publicConfig.domain,
icon: "mdi-content-copy",
callback: copy,
hint: "Copy the Domain to the clipboard.",
},
];
};
Expand Down

0 comments on commit cb47e59

Please sign in to comment.