~juju-gui/juju-gui/trunk

« back to all changes in this revision

Viewing changes to app/views/viewlets/service-ghost.js

  • Committer: Jeff Pihach
  • Date: 2013-09-03 16:09:24 UTC
  • mfrom: (992.3.15 save-changed-1214087)
  • Revision ID: jeff.pihach@canonical.com-20130903160924-mjy240b4rx67dzn1
Only sends the changed config options.

1) There was a bug with the ghost constraints code which
   caused it to fail when deploying services on rapi.

2) The GUI now only sends configuration values to juju when
   those values differ from the defaults.

R=frankban, rharding
CC=
https://codereview.appspot.com/13252045

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
          var newVal = (val['default'] === undefined) ? '' : val['default'];
42
42
          node.set('value', newVal);
43
43
        }
 
44
      },
 
45
      'constraints': {
 
46
        'update': function(node, val) {
 
47
          node.set('value', val || '');
 
48
        }
44
49
      }
45
50
    },
46
51
    'render': function(model, viewletMgrAttrs) {