github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/store/uibuttons/reducers.go (about)

     1  package uibuttons
     2  
     3  import (
     4  	"github.com/tilt-dev/tilt/internal/store"
     5  )
     6  
     7  func HandleUIButtonUpsertAction(state *store.EngineState, action UIButtonUpsertAction) {
     8  	n := action.UIButton.Name
     9  	state.UIButtons[n] = action.UIButton
    10  }
    11  
    12  func HandleUIButtonDeleteAction(state *store.EngineState, action UIButtonDeleteAction) {
    13  	delete(state.UIButtons, action.Name)
    14  }