MastodonC/kixi.hecuba — pull request #81 by apawlicka (2014-07-04 14:49:12+00:00)
Title: Editable devices

- Don't select row when it's being edited.
- Add checkbox for creating calculating fields.
- Add allowed?* for devices.
- Use chart's date format.
- Make table scrollable (when the screen is too small to allow for
required min table width)
- Don't use min library for development. Hide divs instead of removing them.

Notes: This PR duplicates what's on feature/property-details-editing as it was created off that branch.

Issues:
1. When we reload the page, and history cascades down to the chart component, it seems that the sensors table component is not being mounted properly. When I click on edit button for any of the sensors, I get "Invariant Violation: Can only force an update on mounted or mounting components.", and trying to use (.isMounted owner) does not solve the problem. When I first "select" the sensor (even though it's already selected) and then click on "edit", everything works. Similarly, when I load fresh page (no history), and select down to the sensors, all works ok. I've been trying to follow this tutorial (editable classes example) https://github.com/swannodette/om/wiki/Intermediate-Tutorial
2. Security: similarly to properties, we have no sane way of enabling/disabling edit buttons depending on user's role. User will fill in the form, hit "save", but the PUT will return not allowed.