mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-10-04 07:58:35 +00:00
gui: Make User Add page as Required
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user