Skip to content

Commit

Permalink
tlock: Make tokens work with reworked vault
Browse files Browse the repository at this point in the history
  • Loading branch information
eklairs committed May 9, 2024
1 parent f3787d4 commit 7881bf9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tlock/models/dashboard/tokens/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ func (screen EditTokenScreen) Update(msg tea.Msg, manager *modelmanager.ModelMan
}

// Replace
if err := screen.vault.ReplaceToken(screen.folder.Name, screen.token, token); err != nil {
screen.SetError(5, err)
break
}
if err := screen.vault.ReplaceToken(screen.folder.Name, screen.token, token); err != nil {
screen.SetError(2, err)
break
}

accountName := formItems[0].FormItem.Value()

Expand Down
6 changes: 3 additions & 3 deletions tlock/models/dashboard/tokens/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ func (screen MoveTokenScreen) Update(msg tea.Msg, manager *modelmanager.ModelMan
func (screen MoveTokenScreen) View() string {
return lipgloss.JoinVertical(
lipgloss.Center,
tlockstyles.Styles.Title.Render(moveTokenAscii), "",
tlockstyles.Styles.SubText.Render("Select the folder to move the token to"), "",
tlockstyles.Title(moveTokenAscii), "",
tlockstyles.Dimmed("Select the folder to move the token to"), "",
screen.listview.View(), "",
tlockstyles.Help.View(moveTokenKeys),
tlockstyles.HelpView(moveTokenKeys),
)
}

0 comments on commit 7881bf9

Please sign in to comment.