1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 07:45:22 +02:00

fix(ui/wizard): edge agent ui issue [EE-5126] (#8598)

This commit is contained in:
Oscar Zhou 2023-03-07 10:27:40 +13:00 committed by GitHub
parent 70710cfeb7
commit 37484566eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 9 deletions

View file

@ -1,6 +1,7 @@
import { CopyButton } from '@@/buttons';
import { FormSection } from '@@/form-components/FormSection';
import { TextTip } from '@@/Tip/TextTip';
import { Code } from '@@/Code';
export function EdgeKeyDisplay({ edgeKey }: { edgeKey: string }) {
return (
@ -15,9 +16,7 @@ export function EdgeKeyDisplay({ edgeKey }: { edgeKey: string }) {
<a href="https://downloads.portainer.io/edge_agent_guide.pdf">here.</a>
</p>
<div className="mt-2 break-words">
<code>{edgeKey}</code>
</div>
<Code>{edgeKey}</Code>
<CopyButton copyText={edgeKey}>Copy token</CopyButton>
</FormSection>

View file

@ -50,16 +50,14 @@ const defaultOptions: BoxSelectorOption<
},
{
id: 'edgeAgentStandard',
icon: EdgeAgentStandardIcon,
iconType: 'badge',
icon: <BadgeIcon icon={EdgeAgentStandardIcon} size="3xl" />,
label: 'Edge Agent Standard',
description: '',
value: 'edgeAgentStandard',
},
isBE && {
id: 'edgeAgentAsync',
icon: EdgeAgentAsyncIcon,
iconType: 'badge',
icon: <BadgeIcon icon={EdgeAgentAsyncIcon} size="3xl" />,
label: 'Edge Agent Async',
description: '',
value: 'edgeAgentAsync',