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

Delta Between Two Patch Sets: app/views/topology/service.js

Issue 10565043: A prototype of the new ghost config
Left Patch Set: Created 11 years, 9 months ago
Right Patch Set: A prototype of the new ghost config Created 11 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « app/views/service.js ('k') | app/views/view-container.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 This file is part of the Juju GUI, which lets users view and manage Juju 2 This file is part of the Juju GUI, which lets users view and manage Juju
3 environments within a graphical interface (https://launchpad.net/juju-gui). 3 environments within a graphical interface (https://launchpad.net/juju-gui).
4 Copyright (C) 2012-2013 Canonical Ltd. 4 Copyright (C) 2012-2013 Canonical Ltd.
5 5
6 This program is free software: you can redistribute it and/or modify it under 6 This program is free software: you can redistribute it and/or modify it under
7 the terms of the GNU Affero General Public License version 3, as published by 7 the terms of the GNU Affero General Public License version 3, as published by
8 the Free Software Foundation. 8 the Free Software Foundation.
9 9
10 This program is distributed in the hope that it will be useful, but WITHOUT 10 This program is distributed in the hope that it will be useful, but WITHOUT
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 var getModelURL = topo.get('getModelURL'); 1343 var getModelURL = topo.get('getModelURL');
1344 // to satisfy linter; 1344 // to satisfy linter;
1345 var flags = window.flags; 1345 var flags = window.flags;
1346 1346
1347 topo.detachContainer(); 1347 topo.detachContainer();
1348 if (flags.serviceInspector) { 1348 if (flags.serviceInspector) {
1349 // XXX: switch on pending to handle ghost config. 1349 // XXX: switch on pending to handle ghost config.
1350 var serviceInspector = getInspector(service.get('id')); 1350 var serviceInspector = getInspector(service.get('id'));
1351 if (!serviceInspector) { 1351 if (!serviceInspector) {
1352 serviceInspector = new views.ServiceInspector(service, { 1352 serviceInspector = new views.ServiceInspector(service, {
1353 db: topo.get('db') 1353 db: topo.get('db'),
1354 events: {
1355 '.tab': {'click': 'showViewlet'},
1356 '.close': {'click': 'destroy'}
1357 },
1358 viewletList: ['overview', 'units', 'config'],
1359 template: Y.juju.views.Templates['view-container']
1354 }); 1360 });
1355 serviceInspector.inspector.after('destroy', function(e) { 1361 serviceInspector.inspector.after('destroy', function(e) {
1356 setInspector(e.currentTarget, true); 1362 setInspector(e.currentTarget, true);
1357 }); 1363 });
1358 setInspector(serviceInspector); 1364 setInspector(serviceInspector);
1359 } 1365 }
1360 } else { 1366 } else {
1361 topo.fire('navigateTo', { 1367 topo.fire('navigateTo', {
1362 url: getModelURL(service) 1368 url: getModelURL(service)
1363 }); 1369 });
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 requires: [ 1445 requires: [
1440 'd3', 1446 'd3',
1441 'd3-components', 1447 'd3-components',
1442 'juju-view-service', 1448 'juju-view-service',
1443 'juju-templates', 1449 'juju-templates',
1444 'juju-models', 1450 'juju-models',
1445 'juju-env', 1451 'juju-env',
1446 'unscaled-pack-layout' 1452 'unscaled-pack-layout'
1447 ] 1453 ]
1448 }); 1454 });
LEFTRIGHT

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