 
     on_new_click: (event) =>
         new NewEnvView(envs: @envs).show()
+
+    on_env_activate: (data) =>
+        # TODO
 
 class ModalView extends Backbone.View
     initialize: (options) ->

    submit_text: () -> "Create"

    doit: (new_name) ->
        $.ajax({url: "/api/envs/new/#{new_name}", type: 'POST'})

class SearchView extends Backbone.View
    initialize: (options) ->


    on_activate_click: (event) =>
        env = @envs.get_active()
        api("env/#{env.get('name')}/activate", {}, @on_env_activate)

    on_delete_click: (event) =>
        new DeleteEnvView(envs: @envs).show()
