Merge lp:~jcsackett/juju-gui/rip-out-old-charmworld into lp:juju-gui/experimental
Proposed by
j.c.sackett
Status: | Merged |
---|---|
Merged at revision: | 842 |
Proposed branch: | lp:~jcsackett/juju-gui/rip-out-old-charmworld |
Merge into: | lp:juju-gui/experimental |
Diff against target: |
60 lines (+5/-16) 3 files modified
app/app.js (+0/-1) app/store/charm.js (+1/-1) app/views/charm-panel.js (+4/-14) |
To merge this branch: | bzr merge lp:~jcsackett/juju-gui/rip-out-old-charmworld |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+175086@code.launchpad.net |
Description of the change
Removes charmStore from charm-panel
Removes references to charmStore--and the implicit uses of the old charmworld
API--from the charmpanel.
To post a comment you must log in.
Reviewers: mp+175086_ code.launchpad. net,
Message:
Please take a look.
Description:
Removes charmStore from charm-panel
Removes references to charmStore--and the implicit uses of the old
charmworld
API--from the charmpanel.
https:/ /code.launchpad .net/~jcsackett /juju-gui/ rip-out- old-charmworld/ +merge/ 175086
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/11370043/
Affected files: charm-panel. js
A [revision details]
M app/app.js
M app/store/charm.js
M app/views/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: app/app.js
=== modified file 'app/app.js'
--- app/app.js 2013-07-15 18:14:19 +0000
+++ app/app.js 2013-07-16 15:33:53 +0000
@@ -558,7 +558,6 @@
// Create the CharmPanel instance once the app is initialized.
this.charmPane l = views.CharmPane l.getInstance( {
- charm_store: this.charm_store,
env: this.env,
app: this
});
Index: app/store/charm.js charm.js'
=== modified file 'app/store/
--- app/store/charm.js 2013-06-18 18:16:46 +0000
+++ app/store/charm.js 2013-07-16 14:41:16 +0000
@@ -155,7 +155,7 @@
/**
- * Api helper for the updated charmworld api v1.
+ * Api helper for the updated charmworld api v2.
*
* @class Charmworld2
* @extends {Base}
Index: app/views/ charm-panel. js charm-panel. js' charm-panel. js 2013-07-12 20:19:56 +0000 charm-panel. js 2013-07-16 15:33:53 +0000 config) {
=== modified file 'app/views/
--- app/views/
+++ app/views/
@@ -720,8 +720,7 @@
*/
function createInstance(
- var charmStore = config.charm_store, charm-panel' ),
newPanel. set('ghostAttri butes', config. ghostAttributes );
newPanel. set('model' , null); // Clear out the old. getById( config. charmId) ; set('model' , charm); charmStore, function(err, response) { set('model' , charm); set('model' , charm);
newPanel. render( );
- charms = new models.CharmList(),
+ var charms = new models.CharmList(),
app = config.app,
container = Y.Node.create('<div />').setAttribute(
'id', 'juju-search-
@@ -778,18 +777,9 @@
var charm = charms.
- if (charm.loaded) {
- newPanel.
- } else {
- charm.load(
- if (err) {
- console.log('error loading charm', response);
- } else {
- newPanel.
- }
- });
- }
- } else { // This is the search panel.
+ newPanel.
+ } else {
+ // This is the search panel.
}
}