gui: Make User Add page as Required

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
This commit is contained in:
Reagan Lopez
2019-04-22 11:22:15 -07:00
committed by Mark Horn
parent 5eb6b7dddb
commit 16ddfc496a
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -79,12 +79,12 @@ const (
// PageIDTelemetry is the telemetry page key
PageIDTelemetry = iota
// PageIDDiskConfig is the disk configuration page key
PageIDDiskConfig = iota
// PageIDUserAdd is the user add page key
PageIDUserAdd = iota
// PageIDDiskConfig is the disk configuration page key
PageIDDiskConfig = iota
// PageIDHostname is the hostname page key
PageIDHostname = iota
+2 -2
View File
@@ -257,12 +257,12 @@ func (page *UserAddPage) onDeleteClick(button *gtk.Button) {
// IsRequired will return false as we have default values
func (page *UserAddPage) IsRequired() bool {
return false
return true
}
// IsDone checks if all the steps are completed
func (page *UserAddPage) IsDone() bool {
return page.GetConfiguredValue() != ""
return len(page.model.Users) != 0
}
// GetID returns the ID for this page
+1 -1
View File
@@ -230,11 +230,11 @@ func (window *Window) createMenuPages() (*Window, error) {
pages.NewTimezonePage,
pages.NewKeyboardPage,
pages.NewDiskConfigPage,
pages.NewUserAddPage,
pages.NewTelemetryPage,
// advanced
pages.NewBundlePage,
pages.NewUserAddPage,
pages.NewHostnamePage,
// always last