Merge lp://staging/~gary/juju-gui/peekabooInspectorSave into lp://staging/juju-gui/experimental
Proposed by
Gary Poster
Status: | Merged |
---|---|
Merged at revision: | 1026 |
Proposed branch: | lp://staging/~gary/juju-gui/peekabooInspectorSave |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
194 lines (+71/-32) 6 files modified
app/templates/service-configuration.handlebars (+10/-0) app/templates/service-configuration.partial (+0/-10) app/templates/service-constraints-viewlet.handlebars (+9/-5) app/views/inspector.js (+9/-4) lib/views/juju-inspector.less (+20/-13) test/test_inspector_constraints.js (+23/-0) |
To merge this branch: | bzr merge lp://staging/~gary/juju-gui/peekabooInspectorSave |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
hide and show save controls
In the inspector, controls to save values are hidden when there are no changes, and revealed when there are. Changes can come from saving the form or from simply manually reverting values.
This also changes the "modified" asterisk to be removed when the user manually reverts values.
To post a comment you must log in.
Reviewers: mp+184688_ code.launchpad. net,
Message:
Please take a look.
Description:
hide and show save controls
In the inspector, controls to save values are hidden when there are no
changes, and revealed when there are. Changes can come from saving the
form or from simply manually reverting values.
This also changes the "modified" asterisk to be removed when the user
manually reverts values.
To QA, create a service, and then open the configuration panel in the
post-deployment inspector. The save control is not shown. Make a
change to one of the fields, and the save controls appear. revert the
change(s) and the controls disappear again. Make a change and then save
the change, and the controls disappear. Do the same for the constraints
panel.
https:/ /code.launchpad .net/~gary/ juju-gui/ peekabooInspect orSave/ +merge/ 184688
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13368051/
Affected files (+73, -32 lines): service- configuration. handlebars service- configuration. partial service- constraints- viewlet. handlebars inspector. js juju-inspector. less inspector_ constraints. js
A [revision details]
M app/templates/
M app/templates/
M app/templates/
M app/views/
M lib/views/
M test/test_