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" />
|
<TestTube2 className="h-4 w-4 mr-2" />
|
||||||
Test
|
Test
|
||||||
</Button>
|
</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
|
<Button
|
||||||
onClick={() => setShowDeleteConfirm(true)}
|
onClick={() => setShowDeleteConfirm(true)}
|
||||||
variant="destructive"
|
variant="destructive"
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ export default function RepositoryDetailsPage({ loaderData }: Route.ComponentPro
|
||||||
"Run Doctor"
|
"Run Doctor"
|
||||||
)}
|
)}
|
||||||
</Button>
|
</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}>
|
<Button variant="destructive" onClick={() => setShowDeleteConfirm(true)} disabled={deleteRepo.isPending}>
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ export default function VolumeDetails({ loaderData }: Route.ComponentProps) {
|
||||||
>
|
>
|
||||||
Unmount
|
Unmount
|
||||||
</Button>
|
</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}>
|
<Button variant="destructive" onClick={() => setShowDeleteConfirm(true)} disabled={deleteVol.isPending}>
|
||||||
<Trash2 className="h-4 w-4 mr-2" />
|
<Trash2 className="h-4 w-4 mr-2" />
|
||||||
Delete
|
Delete
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue