Refactor Edit Box Devices component to improve device options filtering #2101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…ring
Pull Request check-list
To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:
- [ ] If your changes affects code, did your write the tests?npm test
on both front/server)npm run eslint
on both front/server)npm run prettier
on both front/server)- [ ] If you are adding a new features/services, did you run integration comparator? (npm run compare-translations
on front)- [ ] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)- [ ] If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.- [ ] Did you add fake requests data for the demo mode (front/src/config/demo.js
) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
Description of change
Like the device selection field in the box charts, addition of a filter in the selection field of the "Devices" box allowing all devices already selected to be removed from the list
![image](https://private-user-images.githubusercontent.com/35010958/339225240-c9cff30b-45d0-492c-9149-81acbb70896b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4MTgzOTQsIm5iZiI6MTczOTgxODA5NCwicGF0aCI6Ii8zNTAxMDk1OC8zMzkyMjUyNDAtYzljZmYzMGItNDVkMC00OTJjLTkxNDktODFhY2JiNzA4OTZiLnBuZz9YLUFtei1BbGdvcml0aG09QVd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