       dfc.write()
     activateDataflux: (index) ->
       dfc.selectObject index
-      this.folders = dfc.getObjects()
-      this.active = dfc.getSelectedObject()
+      @folders = dfc.getObjects()
+      @active = dfc.getSelectedObject()
       @$broadcast 'refresh'
       dfc.write()
       c.log.debug "Activate: #{index}"
     startAutoCommit: ->
       dfc.startAutoCommit()
-      this.folders = dfc.getObjects()
-      this.active = dfc.selectObject this.activeIndex
+      @folders = dfc.getObjects()
+      @active = dfc.selectObject @activeIndex
       dfc.write()
     stopAutoCommit: ->
       dfc.stopAutoCommit()
-      this.folders = dfc.getObjects()
-      this.active = dfc.selectObject this.activeIndex
+      @folders = dfc.getObjects()
+      @active = dfc.selectObject @activeIndex
       dfc.write()
     commit: ->
       dfc.commit()
-      this.folders = dfc.getObjects()
+      @folders = dfc.getObjects()
 })


dfc = new DatafluxesController()
dfc.loadObjects()
#objects = dfc.getObjects()
#selectedObject = dfc.getSelectedObject()

c = new MainController()


  events:
    'refresh': ->
      c.log.debug "settings. active"
      @active = @$root.active
  })

vueLogs = Vue.extend({
  template: '#logs-template'
  data: ->
    logs: c.GUILogs
    t: @$root.t
  methods:
    clearLog: ->
      c.clearLog()
      @logs = c.GUILogs
  })

Vue.component "settings", vueSettings
