   events:
     'refresh': ->
       c.log.debug "settings. active"
-      this.active = this.$root.active
+      @active = @$root.active
   })
 
 vueLogs = Vue.extend({
   template: '#logs-template'
   data: ->
     logs: c.GUILogs
-    t: this.$root.t
+    t: @$root.t
   methods:
     clearLog: ->
       c.clearLog()
-      this.logs = c.GUILogs
+      @logs = c.GUILogs
   })
 
 Vue.component "settings", vueSettings


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

c = new MainController()


  template: '#settings-template'
  data: ->
    active: dfc.getSelectedObject()
    t: @$root.t
  methods:
    save: ->
      dfc.setSelectedObject()
