From 76194c7d4650c8979a1b22833e52a57687b3bd0f Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 19 Nov 2014 08:51:42 -0400 Subject: [PATCH] Use getDisplayName() in apps action --- lib/actions/app.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/actions/app.coffee b/lib/actions/app.coffee index e4b33c46..51f5e48d 100644 --- a/lib/actions/app.coffee +++ b/lib/actions/app.coffee @@ -1,6 +1,7 @@ _ = require('lodash') cliff = require('cliff') server = require('../server/server') +device = require('../device/device') applicationModel = require('../models/application') authHooks = require('../hooks/auth') @@ -12,7 +13,7 @@ exports.list = authHooks.failIfNotLoggedIn -> return { ID: application.id Name: application.app_name - 'Device Type': application.device_type + 'Device Type': device.getDisplayName(application.device_type) 'Online Devices': _.where(application.device, is_online: 1).length 'All Devices': application.device?.length or 0 }