Skip to content

Commit

Permalink
Fix helper.go showDataDiskPage undefined
Browse files Browse the repository at this point in the history
Signed-off-by: masteryyh <[email protected]>
  • Loading branch information
masteryyh committed Jul 7, 2023
1 parent 8f0cfb6 commit 7c4ba4c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions pkg/console/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@ func (p *passwordWrapper) passwordVEscapeKeyBinding(g *gocui.Gui, v *gocui.View)
p.passwordV.Close()
p.passwordConfirmV.Close()
if installModeOnly {
if canChoose, err := canChooseDataDisk(); err != nil {
return err
} else if canChoose {
return showDataDiskPage(p.c)
} else {
return showDiskPage(p.c)
}
return showDiskPage(p.c)
}
if err := p.c.setContentByName(notePanel, ""); err != nil {
return err
Expand Down Expand Up @@ -85,13 +79,7 @@ func (p *passwordWrapper) passwordConfirmVKeyEscape(g *gocui.Gui, v *gocui.View)
return err
}
if installModeOnly {
if canChoose, err := canChooseDataDisk(); err != nil {
return err
} else if canChoose {
return showDataDiskPage(p.c)
} else {
return showDiskPage(p.c)
}
return showDiskPage(p.c)
}
return showNext(p.c, tokenPanel)
}

0 comments on commit 7c4ba4c

Please sign in to comment.