Removed server hostname under container name
This commit is contained in:
@@ -35,38 +35,6 @@ export const DockerRowActions = ({ container, containerStatus, onContainerAction
|
|||||||
<Eye className="mr-2 h-4 w-4" />
|
<Eye className="mr-2 h-4 w-4" />
|
||||||
View Details
|
View Details
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuSeparator className="bg-border" />
|
|
||||||
<DropdownMenuItem
|
|
||||||
onClick={() => onContainerAction(containerStatus === 'running' ? 'stop' : 'start', container.id, container.name)}
|
|
||||||
className="cursor-pointer hover:bg-muted"
|
|
||||||
>
|
|
||||||
{containerStatus === 'running' ? (
|
|
||||||
<>
|
|
||||||
<Square className="mr-2 h-4 w-4" />
|
|
||||||
Stop Container
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<Play className="mr-2 h-4 w-4" />
|
|
||||||
Start Container
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem
|
|
||||||
onClick={() => onContainerAction('restart', container.id, container.name)}
|
|
||||||
className="cursor-pointer hover:bg-muted"
|
|
||||||
>
|
|
||||||
<RefreshCw className="mr-2 h-4 w-4" />
|
|
||||||
Restart Container
|
|
||||||
</DropdownMenuItem>
|
|
||||||
<DropdownMenuSeparator className="bg-border" />
|
|
||||||
<DropdownMenuItem
|
|
||||||
onClick={() => onContainerAction('delete', container.id, container.name)}
|
|
||||||
className="cursor-pointer hover:bg-muted text-destructive focus:text-destructive"
|
|
||||||
>
|
|
||||||
<Trash2 className="mr-2 h-4 w-4" />
|
|
||||||
Remove Container
|
|
||||||
</DropdownMenuItem>
|
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ export const DockerTableRow = ({ container, onRowClick, onContainerAction, onVie
|
|||||||
<div className="font-semibold text-sm sm:text-base text-foreground">{container.name}</div>
|
<div className="font-semibold text-sm sm:text-base text-foreground">{container.name}</div>
|
||||||
<div className="text-xs sm:text-sm text-muted-foreground">
|
<div className="text-xs sm:text-sm text-muted-foreground">
|
||||||
<div className="font-mono">{container.docker_id}</div>
|
<div className="font-mono">{container.docker_id}</div>
|
||||||
<div className="font-mono">{container.hostname}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|||||||
Reference in New Issue
Block a user