-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for the enabling and disabling of profiles (#1149)
* add a enabled flag to GpioMappings to indicate what's active with this flag we no longer need to copy profile 1 to 2-4 by default, so that migration goes away, but because of that we need to migrate the old way of doing things and only enable profiles that are actually different than the base. in the end, new fresh boards should have profile 1 only enabled, and profiles 2-4 blank (no copying, disabled by default), and migrated configs should have profiles (that exist) that differ from profile 1 enabled and profiles that don't disabled * refactor set/next/previousProfile to only set enabled profiles * always provide a list in getProfileOptions * Add possibility to add, disabled/enable profiles. State can now handle any amount of profiles * Mock data with enabled flag, handle flag correctly * Correctly handle disabled translation string * Ignore base profile enabled label in menu * add enabled flag to the API; not sure how I missed this --------- Co-authored-by: ian <[email protected]>
- Loading branch information
Showing
10 changed files
with
206 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.