~bcsaller/juju-gui/exportXY

« back to all changes in this revision

Viewing changes to app/views/topology/relation.js

  • Committer: Benjamin Saller
  • Author(s): Benjamin Saller
  • Date: 2013-05-03 00:32:57 UTC
  • mfrom: (628.1.18 sandbox-simulator)
  • Revision ID: bcsaller@gmail.com-20130503003257-0nxzmh3xhrw2lde1
Sandbox import/export w/File DnD support

Very basic import/export (doesn't use all the fakebackend method
directly as it should)

File Drag and Drop support. To test open a blank sandbox and a nautilus 
window (with test/data opened) and drag one of the samples to the canvas, 
sample-improv.json is taken from the rapi-delta branch and can be used
directly.

R=gary.poster, jeff.pihach
CC=
https://codereview.appspot.com/9070043

Show diffs side-by-side

added added

removed removed

Lines of Context:
550
550
            relationElement, relationId, confirmButton, ev) {
551
551
      var topo = this.get('component'),
552
552
          db = topo.get('db');
553
 
      var service = this.get('model');
554
553
      if (ev.err) {
555
554
        db.notifications.add(
556
555
            new models.Notification({
824
823
    },
825
824
 
826
825
    _addRelationCallback: function(module, relation_id, ev) {
827
 
      console.log('addRelationCallback reached');
828
826
      var topo = module.get('component');
829
827
      var db = topo.get('db');
830
828
      var vis = topo.vis;