* Refactor user's device assignment logic
* Extract device assignment logic into app methods
* Move device retrieval into control flow
* Move un\assign logic into control flow
* Extract mobile callflow update into own function
* Patch device owner_id instead of full update
* Move mobile callflow id retrieval to control flow
* Patch callflow to avoid having to retrieve it first
* Consolidate un\assignment logic
* Migrate single-used app methods into closure
* Extract mobile callflow update logic into app method
* Run device patch and mobile callflow update in parallel
* Move back device assignment logic to users module
* Consolidate mobile callflow update w/ user callfow fetching logic
* Update linked callflow on mobile device un\assignment
* Refactor entities update logic on device un\assignment
* Conditionaly render user assignment feature
* Pass down prop governing user assignment rendering
* Disable user assignment when loaded by user submodule
* Conditionaly render user assignment feature
* Pass down prop governing user assignment rendering
* Disable user assignment when loaded by user submodule
Property was changed back to modules as it was decided that exposing a
list of modules enabled would be more useful than the opposite.
This reverts commit 3e43b4dde9.
Property was changed back to modules as it was decided that exposing a
list of modules enabled would be more useful than the opposite.
This reverts commit 3e43b4dde9.
* Do not delete user vmbox, and use common functions to get main user vmbox
* Adjust flow at usersRenderVMBox + add TO-DOs
* Create or update user vmbox when enabling feature
* Refactor to reduce nesting & repeated code/checks
* Refactor + check user's vmbox in main callflow modules
* Fix variable name
* Create function to extract data from callflow flow
* Receive main user callflow, and other user callflows, at usersFormatUserData
* Get vmbox from main callflow if possible
* Undo unnecessary changes & remove unused function
* Get user vmbox from main callflow
* Get vmbox only when needed + add TO-DO's
* Undo refactored code not related to bug
* Changes to support usersMigrateFromExtensions case
* Get main vmbox for feature popup render, and restore add vmbox logic
* Add missing self variables
* Update VMBox status in user main callflow
* Clean code
* Fix some names
* Use usersGetMainCallflowAndVMBox to get bot callflow and vmbox
* Remove unnecessary change
* Remove unnecessary call to API
* Multiple small fixes
* Fix callflow module name on check
* Change property name to skip callflow module
* Fix defaultValue when extracting data.skip_module
* Fix vmbox active value
* Fix to get vmbox active status, when callflow module is not present
* Do not delete user vmbox, and use common functions to get main user vmbox
* Adjust flow at usersRenderVMBox + add TO-DOs
* Create or update user vmbox when enabling feature
* Refactor to reduce nesting & repeated code/checks
* Refactor + check user's vmbox in main callflow modules
* Fix variable name
* Create function to extract data from callflow flow
* Receive main user callflow, and other user callflows, at usersFormatUserData
* Get vmbox from main callflow if possible
* Undo unnecessary changes & remove unused function
* Get user vmbox from main callflow
* Get vmbox only when needed + add TO-DO's
* Undo refactored code not related to bug
* Changes to support usersMigrateFromExtensions case
* Get main vmbox for feature popup render, and restore add vmbox logic
* Add missing self variables
* Update VMBox status in user main callflow
* Clean code
* Fix some names
* Use usersGetMainCallflowAndVMBox to get bot callflow and vmbox
* Remove unnecessary change
* Remove unnecessary call to API
* Multiple small fixes
* Fix callflow module name on check
* Change property name to skip callflow module
* Fix defaultValue when extracting data.skip_module
* Fix vmbox active value
* Fix to get vmbox active status, when callflow module is not present
* Hide device form on user creation if there aren't provisioners
* Prevent request if there no provisioner API
* use appFlags to looks for valid provisioner
* Hide device form on user creation if there aren't provisioners
* Prevent request if there no provisioner API
* use appFlags to looks for valid provisioner
* Remove this
* Don't store device data inside user data, on user creation
* user creationg, prevent device error
* Revert "Remove this"
This reverts commit 7102cf9b4a.
* Remove this
* Update add user modal to show labels instead of icons
* Fill brand field on add device section
* add device form
* Save user device
* Binding form events from single function
* Add extra button Create User and Add Device
* Code style
* Create user and device form based on mockup
* Handling form validation
* Create User and Add another button
* Revert "Remove this"
This reverts commit 7102cf9b4a.
* Styled notification email
* Use single chosen field to select device model
* improvements
* Improve form validation message
* Delete unused template
* Code style improvements
* Fix typo on lodash flatMap statement
Device family as argument
* code style improvements
* Create function to render add user modal
* Handle error on user creation to prevent form buttons state
* Render users list without auto scroll when save and new btn is clicked
* Fix device data validation
* Remove this
* Don't store device data inside user data, on user creation
* user creationg, prevent device error
* Revert "Remove this"
This reverts commit 7102cf9b4a.
* Remove this
* Update add user modal to show labels instead of icons
* Fill brand field on add device section
* add device form
* Save user device
* Binding form events from single function
* Add extra button Create User and Add Device
* Code style
* Create user and device form based on mockup
* Handling form validation
* Create User and Add another button
* Revert "Remove this"
This reverts commit 7102cf9b4a.
* Styled notification email
* Use single chosen field to select device model
* improvements
* Improve form validation message
* Delete unused template
* Code style improvements
* Fix typo on lodash flatMap statement
Device family as argument
* code style improvements
* Create function to render add user modal
* Handle error on user creation to prevent form buttons state
* Render users list without auto scroll when save and new btn is clicked
* Fix device data validation