Change log and flash message to be more accurate
parent
07f4fdca42
commit
ea3710545a
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue