File tree Expand file tree Collapse file tree 4 files changed +29
-5
lines changed
src/widgets/dashboard/inbounds/inbounds-card Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 572572 "add-nodes-to-inbound-line-1" : " Are you sure you want to add this inbound to nodes?" ,
573573 "add-nodes-to-inbound-line-2" : " This action will add the inbound to all nodes." ,
574574 "remove-nodes-from-inbound-line-1" : " Are you sure you want to remove this inbound from nodes?" ,
575- "remove-nodes-from-inbound-line-2" : " This action will remove the inbound from all nodes."
575+ "remove-nodes-from-inbound-line-2" : " This action will remove the inbound from all nodes." ,
576+ "copied" : " Copied" ,
577+ "copy-uuid" : " Copy UUID"
576578 }
577579 },
578580 "multi-select-hosts" : {
Original file line number Diff line number Diff line change 572572 "add-nodes-to-inbound-line-1" : " آیا مطمئن هستید که میخواهید این اینباند را به نودها اضافه کنید؟" ,
573573 "add-nodes-to-inbound-line-2" : " این اقدام اینباند را به همه نودها اضافه خواهد کرد." ,
574574 "remove-nodes-from-inbound-line-1" : " آیا مطمئن هستید که میخواهید این اینباند را از نودها حذف کنید؟" ,
575- "remove-nodes-from-inbound-line-2" : " این اقدام اینباند را از همه نودها حذف خواهد کرد."
575+ "remove-nodes-from-inbound-line-2" : " این اقدام اینباند را از همه نودها حذف خواهد کرد." ,
576+ "copied" : " کپی شده" ,
577+ "copy-uuid" : " کپی UUID"
576578 }
577579 },
578580 "multi-select-hosts" : {
719721 "bulk-actions" : " اقدامات دستهجمعی"
720722 }
721723 }
722- }
724+ }
Original file line number Diff line number Diff line change 572572 "add-nodes-to-inbound-line-1" : " Вы уверены, что хотите добавить этот инбаунд нодам?" ,
573573 "add-nodes-to-inbound-line-2" : " Это действие добавит инбаунд всем нодам." ,
574574 "remove-nodes-from-inbound-line-1" : " Вы уверены, что хотите удалить этот инбаунд у нод?" ,
575- "remove-nodes-from-inbound-line-2" : " Это действие удалит инбаунд у всех нод."
575+ "remove-nodes-from-inbound-line-2" : " Это действие удалит инбаунд у всех нод." ,
576+ "copied" : " Скопированный" ,
577+ "copy-uuid" : " Копировать uuid"
576578 }
577579 },
578580 "multi-select-hosts" : {
719721 "bulk-actions" : " Массовые действия"
720722 }
721723 }
722- }
724+ }
Original file line number Diff line number Diff line change 22 Badge ,
33 Button ,
44 Card ,
5+ CopyButton ,
56 Divider ,
67 Group ,
78 JsonInput ,
@@ -12,7 +13,9 @@ import {
1213 Tooltip
1314} from '@mantine/core'
1415import {
16+ PiCheck ,
1517 PiCode ,
18+ PiCopy ,
1619 PiCpu ,
1720 PiDoorOpen ,
1821 PiGlobe ,
@@ -346,6 +349,21 @@ export function InboundsCardWidget(props: IProps) {
346349 >
347350 { t ( 'inbounds-card.widget.show-raw-inbound' ) }
348351 </ Button >
352+ < CopyButton timeout = { 2000 } value = { inbound . uuid } >
353+ { ( { copied, copy } ) => (
354+ < Button
355+ color = { copied ? 'teal' : 'gray' }
356+ leftSection = { copied ? < PiCheck size = "1rem" /> : < PiCopy size = "1rem" /> }
357+ onClick = { copy }
358+ size = "sm"
359+ variant = "subtle"
360+ >
361+ { copied
362+ ? t ( 'inbounds-card.widget.copied' )
363+ : t ( 'inbounds-card.widget.copy-uuid' ) }
364+ </ Button >
365+ ) }
366+ </ CopyButton >
349367 </ Group >
350368 </ Paper >
351369 )
You can’t perform that action at this time.
0 commit comments