Skip to content

Commit

Permalink
tlock: fix: Invalid headers on edit screen
Browse files Browse the repository at this point in the history
  • Loading branch information
eklairs committed May 10, 2024
1 parent bcf7f30 commit 7be0b81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tlock/models/dashboard/tokens/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func InitializeEditTokenScreen(folder tlockvault.Folder, token tlockvault.Token,
// Get term size
_, height, _ := term.GetSize(int(os.Stdout.Fd()))

content := GenerateUI(form)
content := GenerateEditUI(form)

// Initialize viewport
viewport := utils.DisableViewportKeys(viewport.New(85, min(height, lipgloss.Height(content))))
Expand Down Expand Up @@ -297,7 +297,7 @@ func (screen EditTokenScreen) Update(msg tea.Msg, manager *modelmanager.ModelMan
screen.viewport, _ = screen.viewport.Update(msg)

// Generate UI
screen.content = GenerateUI(screen.form)
screen.content = GenerateEditUI(screen.form)

// Set viewport content
screen.viewport.Height = min(lipgloss.Height(screen.content), height)
Expand Down

0 comments on commit 7be0b81

Please sign in to comment.