Skip to content

Commit

Permalink
Fixed more button disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Aug 13, 2024
1 parent 1b3b4c6 commit d53811a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/steps/octopus_destination_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (s OctopusDestinationDetails) GetContainer(parent fyne.Window) *fyne.Contai
s.result.SetText("🔵 Validating Octopus credentials.")
s.apiKey.Disable()
s.server.Disable()
s.spaceId.Disabled()
s.spaceId.Disable()
defer s.apiKey.Enable()
defer s.server.Enable()
defer s.spaceId.Enable()
Expand Down Expand Up @@ -62,7 +62,7 @@ func (s OctopusDestinationDetails) GetContainer(parent fyne.Window) *fyne.Contai
s.result = widget.NewLabel("")

validation := func(input string) {
next.Disabled()
next.Disable()

if s.server != nil && s.server.Text != "" && s.apiKey != nil && s.apiKey.Text != "" && s.spaceId != nil && s.spaceId.Text != "" {
return
Expand Down
4 changes: 2 additions & 2 deletions internal/steps/octopus_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (s OctopusDetails) GetContainer(parent fyne.Window) *fyne.Container {
s.result.SetText("🔵 Validating Octopus credentials.")
s.apiKey.Disable()
s.server.Disable()
s.spaceId.Disabled()
s.spaceId.Disable()
defer s.apiKey.Enable()
defer s.server.Enable()
defer s.spaceId.Enable()
Expand Down Expand Up @@ -61,7 +61,7 @@ func (s OctopusDetails) GetContainer(parent fyne.Window) *fyne.Container {
s.result = widget.NewLabel("")

validation := func(input string) {
next.Disabled()
next.Disable()

if s.server != nil && s.server.Text != "" && s.apiKey != nil && s.apiKey.Text != "" && s.spaceId != nil && s.spaceId.Text != "" {
return
Expand Down

0 comments on commit d53811a

Please sign in to comment.