-
Notifications
You must be signed in to change notification settings - Fork 99
feat: Add 'Show Onboarding Wizard' button to the ArrayOperation page. #2567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
20df8cd
2686a29
1aad334
30e0cc5
f8c0701
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Menu="UserPreferences:z" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Type="xmenu" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Title="Onboarding Wizard" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Icon="magic" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Tag="map-signs" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <?php | ||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Copyright 2005-2025, Lime Technology | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * Copyright 2012-2025, Bergware International. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * This program is free software; you can redistribute it and/or | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * modify it under the terms of the GNU General Public License version 2, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * as published by the Free Software Foundation. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * The above copyright notice and this permission notice shall be included in | ||||||||||||||||||||||||||||||||||||||||||||||||||
| * all copies or substantial portions of the Software. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ?> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <script> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| function openOnboardingWizard() { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| window.location.href = window.location.pathname + '?onboarding=open'; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </script> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| <form markdown="1" name="user_onboarding_settings"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| _(Onboarding Wizard)_: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| : <span class="inline-block"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <input type="button" value="_(Show Onboarding Wizard)_" onclick="openOnboardingWizard()" <?if (_var($var,'fsState')=="Started"):?>disabled<?endif;?>> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <input type="button" value="_(Done)_" onclick="done()"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </span> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| : _(Launch the onboarding wizard to customize your server and set up an internal boot drive)_. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| <?if (_var($var,'fsState')=="Started"):?> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| : <small>_(Array must be stopped to open the onboarding wizard)_.</small> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+25
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gate the wizard on Line 28 and Line 34 only special-case Suggested fix <form markdown="1" name="user_onboarding_settings">
+<?$arrayStopped = _var($var,'fsState')=="Stopped";?>
_(Onboarding Wizard)_:
: <span class="inline-block">
- <input type="button" value="_(Show Onboarding Wizard)_" onclick="openOnboardingWizard()" <?if (_var($var,'fsState')=="Started"):?>disabled<?endif;?>>
+ <input type="button" value="_(Show Onboarding Wizard)_" onclick="openOnboardingWizard()" <?if (!$arrayStopped):?>disabled<?endif;?>>
<input type="button" value="_(Done)_" onclick="done()">
</span>
: _(Launch the onboarding wizard to customize your server and set up an internal boot drive)_.
-<?if (_var($var,'fsState')=="Started"):?>
+<?if (!$arrayStopped):?>
: <small>_(Array must be stopped to open the onboarding wizard)_.</small>
<?endif;?>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
| <?endif;?> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| </form> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Menu="Settings:3" | ||
| Type="menu" | ||
| Title="User Preferences" | ||
| Tag="star" | ||
| Tag="star" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: unraid/webgui
Length of output: 1551
openOnboardingWizard()is non-functional—the query parameter is never consumed.The function reloads the current page with
?onboarding=open, but no code in the repository reads or acts on this parameter. The button needs to either be removed or properly implemented to open the actual wizard interface.🤖 Prompt for AI Agents