fix logs and add cancellation
This commit is contained in:
parent
0b007b9c77
commit
36f201d5d3
23 changed files with 343 additions and 283 deletions
|
|
@ -101,7 +101,8 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
// Status
|
||||
case util.InfoMsg:
|
||||
a.status, cmd = a.status.Update(msg)
|
||||
return a, cmd
|
||||
cmds = append(cmds, cmd)
|
||||
return a, tea.Batch(cmds...)
|
||||
case pubsub.Event[logging.LogMessage]:
|
||||
if msg.Payload.Persist {
|
||||
switch msg.Payload.Level {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue