Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2472)

Issue 12205043: Ghost default configuration toggle

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by jeff.pihach
Modified:
10 years, 9 months ago
Reviewers:
benjamin.saller, mp+177967, j.c.sackett
Visibility:
Public.

Description

Ghost default configuration toggle This implements the 'use default configuration' toggle in the ghost inspector. It's active by default and all inputs and text areas are disabled when it's active. Clicking the toggle will re-enable all inputs. If you have changed some options then click the toggle it will reset all values to their defaults. https://code.launchpad.net/~hatch/juju-gui/use-def-config/+merge/177967 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Ghost default configuration toggle #

Total comments: 14

Patch Set 3 : Ghost default configuration toggle #

Total comments: 6

Patch Set 4 : Ghost default configuration toggle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -39 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M app/templates/ghost-config-viewlet.handlebars View 1 chunk +9 lines, -4 lines 0 comments Download
M app/templates/service-configuration.partial View 1 2 1 chunk +27 lines, -5 lines 0 comments Download
M app/views/environment.js View 1 chunk +4 lines, -3 lines 0 comments Download
M app/views/ghost-inspector.js View 1 2 3 1 chunk +49 lines, -19 lines 0 comments Download
M app/views/inspector.js View 2 chunks +11 lines, -1 line 0 comments Download
M app/views/utils.js View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M lib/views/juju-inspector.less View 1 2 3 4 chunks +71 lines, -4 lines 0 comments Download
M test/index.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A test/test_ghost_inspector.js View 1 2 1 chunk +164 lines, -0 lines 0 comments Download

Messages

Total messages: 10
jeff.pihach
Please take a look.
10 years, 9 months ago (2013-07-31 23:09:19 UTC) #1
jeff.pihach
Please take a look.
10 years, 9 months ago (2013-08-01 18:06:07 UTC) #2
j.c.sackett
This looks LGTM-y; I have one comment below regarding the repeated ifs in the template. ...
10 years, 9 months ago (2013-08-01 18:13:09 UTC) #3
rharding
Up for a chat on this. The branch removes some callbacks but I don't see ...
10 years, 9 months ago (2013-08-01 18:19:10 UTC) #4
rharding
Another comment. https://codereview.appspot.com/12205043/diff/13002/app/views/environment.js File app/views/environment.js (left): https://codereview.appspot.com/12205043/diff/13002/app/views/environment.js#oldcode235 app/views/environment.js:235: 'span.config-file-upload': { 'click': '_showFileDialogue' }, Where did ...
10 years, 9 months ago (2013-08-01 18:51:22 UTC) #5
jeff.pihach
Thanks for the reviews - comments within. https://codereview.appspot.com/12205043/diff/13002/app/templates/service-configuration.partial File app/templates/service-configuration.partial (right): https://codereview.appspot.com/12205043/diff/13002/app/templates/service-configuration.partial#newcode13 app/templates/service-configuration.partial:13: id="input-{{name}}" data-bind="{{#if ...
10 years, 9 months ago (2013-08-01 19:50:23 UTC) #6
jeff.pihach
Please take a look.
10 years, 9 months ago (2013-08-01 20:54:30 UTC) #7
benjamin.saller
LGTM I had a trivial in there and you noted offline you have tests pending. ...
10 years, 9 months ago (2013-08-01 22:11:14 UTC) #8
jeff.pihach
Thanks for the review - good idea about the X I'll add one in before ...
10 years, 9 months ago (2013-08-01 22:19:54 UTC) #9
jeff.pihach
10 years, 9 months ago (2013-08-01 22:32:36 UTC) #10
*** Submitted:

Ghost default configuration toggle

This implements the 'use default configuration' toggle in the
ghost inspector. It's active by default and all inputs and 
text areas are disabled when it's active. Clicking the toggle
will re-enable all inputs. If you have changed some options
then click the toggle it will reset all values to their 
defaults.

R=j.c.sackett, rharding, benjamin.saller
CC=
https://codereview.appspot.com/12205043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b