Change log and flash message to be more accurate

mine
Tuomo Syvänperä 2019-10-08 21:57:04 +03:00
parent 07f4fdca42
commit ea3710545a
1 changed files with 2 additions and 3 deletions

View File

@ -114,12 +114,11 @@ func (v *detailsView) saveCmd(evt *tcell.EventKey) *tcell.EventKey {
}
func (v *detailsView) cpCmd(evt *tcell.EventKey) *tcell.EventKey {
log.Debug().Msgf("Copied YAML to clipboard")
v.app.Flash().Info("YAML copied to clipboard...")
log.Debug().Msgf("Copied content to clipboard")
v.app.Flash().Info("Content copied to clipboard...")
if err := clipboard.WriteAll(v.GetText(true)); err != nil {
v.app.Flash().Err(err)
}
return nil
}