(client *api.Client, instances []api.Instance)
| 38 | } |
| 39 | |
| 40 | func NewDeleteModel(client *api.Client, instances []api.Instance) deleteModel { |
| 41 | s := NewPrimarySpinner() |
| 42 | |
| 43 | ps := NewPanelStyles() |
| 44 | // Override title with margins matching delete layout |
| 45 | ps.Title = PrimaryTitleStyle().MarginTop(1).MarginBottom(1) |
| 46 | |
| 47 | return deleteModel{ |
| 48 | step: deleteStepSelect, |
| 49 | client: client, |
| 50 | loading: false, |
| 51 | spinner: s, |
| 52 | instances: instances, |
| 53 | styles: ps, |
| 54 | warningBox: WarningBoxStyle().MarginTop(1).MarginBottom(1), |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func (m deleteModel) Init() tea.Cmd { |
| 59 | return nil |
no test coverage detected