#= require common/layouts/dashboard class @DashboardController constructor: (app_id) -> @description = ko.observable('') @plugins = ko.observableArray([]) request = FF.get "/apps/#{app_id}", {include_associations: {plugins: 'name,type,public_urls,data_source_count'}, include_fields: 'description'} request.done (data)=> @description data.description @plugins @preparePlugins(data.plugins) preparePlugins: (plugins) -> for plugin in plugins plugin.addSource = () -> plugin.addInitiative = () -> plugin.newBroadcast = () -> plugins