pass id and name to export dialog
This commit is contained in:
parent
11646b6187
commit
c65d84ee9a
3 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ export default function NotificationDetailsPage({ loaderData }: Route.ComponentP
|
|||
<TestTube2 className="h-4 w-4 mr-2" />
|
||||
Test
|
||||
</Button>
|
||||
<ExportDialog entityType="notification-destinations" name={data.name} triggerLabel="Export config" />
|
||||
<ExportDialog entityType="notification-destinations" id={data.id} name={data.name} triggerLabel="Export config" />
|
||||
<Button
|
||||
onClick={() => setShowDeleteConfirm(true)}
|
||||
variant="destructive"
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ export default function RepositoryDetailsPage({ loaderData }: Route.ComponentPro
|
|||
"Run Doctor"
|
||||
)}
|
||||
</Button>
|
||||
<ExportDialog entityType="repositories" name={data.name} triggerLabel="Export config" />
|
||||
<ExportDialog entityType="repositories" id={data.id} name={data.name} triggerLabel="Export config" />
|
||||
<Button variant="destructive" onClick={() => setShowDeleteConfirm(true)} disabled={deleteRepo.isPending}>
|
||||
Delete
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ export default function VolumeDetails({ loaderData }: Route.ComponentProps) {
|
|||
>
|
||||
Unmount
|
||||
</Button>
|
||||
<ExportDialog entityType="volumes" name={volume.name} triggerLabel="Export config" />
|
||||
<ExportDialog entityType="volumes" id={volume.id} name={volume.name} triggerLabel="Export config" />
|
||||
<Button variant="destructive" onClick={() => setShowDeleteConfirm(true)} disabled={deleteVol.isPending}>
|
||||
<Trash2 className="h-4 w-4 mr-2" />
|
||||
Delete
|
||||
|
|
|
|||
Loading…
Reference in a new issue