From 065605fe3c9d6ac34a241dd2e2476aa78cacc766 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 11 Apr 2016 15:31:08 +0200 Subject: [PATCH] Added support for inline translation mode. --- .../javascripts/app/controllers/_profile/devices.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_profile/devices.coffee b/app/assets/javascripts/app/controllers/_profile/devices.coffee index e393c354a..167e8bec2 100644 --- a/app/assets/javascripts/app/controllers/_profile/devices.coffee +++ b/app/assets/javascripts/app/controllers/_profile/devices.coffee @@ -21,12 +21,13 @@ class Index extends App.Controller type: 'GET' url: "#{@apiPath}/user_devices" success: (data) => - @render(data) + @data = data + @render() ) - render: (data) => + render: => @html App.view('profile/devices')( - devices: data + devices: @data || [] ) delete: (e) =>