Skip to content

Commit

Permalink
Exec and run vterm container ID and name display issue fix
Browse files Browse the repository at this point in the history
Signed-off-by: Navid Yaghoobi <[email protected]>
  • Loading branch information
navidys committed Mar 8, 2025
1 parent a92cec5 commit e15d76a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/containers/cntdialogs/vterm/vterm.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,12 @@ func (d *VtermDialog) SetCancelFunc(handler func()) *VtermDialog {
// SetContainerInfo sets container's ID and NAME to the terminal header.
func (d *VtermDialog) SetContainerInfo(id string, name string) {
d.containerID = id
containerInfo := id[0:12]

if name != "" {
containerInfo = fmt.Sprintf("%s (%s)", containerInfo, name)
}

containerInfo := fmt.Sprintf("%12s (%s)", id, name)
d.containerInfo.SetText(containerInfo)
}

Expand Down

0 comments on commit e15d76a

Please sign in to comment.