From 96eb24ac6d4ab8e5e918c6f99748f37c294a1779 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Wed, 31 Jan 2018 21:46:37 -0500 Subject: [PATCH] Add messaging to the device connection process. --- app/lib/ui/devices.js | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/app/lib/ui/devices.js b/app/lib/ui/devices.js index 91e3250..9da7fe3 100644 --- a/app/lib/ui/devices.js +++ b/app/lib/ui/devices.js @@ -5,7 +5,7 @@ devices.init = function () { 'use strict'; devices.listen(); gui.overlay(true); - gui.spinner(true); + gui.spinner(true, 'Checking for connected devices...'); }; devices.listen = function () { 'use strict'; @@ -17,17 +17,26 @@ devices.ready = function (event, arg) { 'use strict'; let opt; let devs = []; + let notify = 'Connected to ' gui.spinner(false); gui.overlay(false); for (let i in arg) { if (arg[i] !== '/dev/fake') { devs.push(arg[i]); + if (notify === 'Connected to ') { + notify += arg[i] + ' ' + } else { + notify += '& ' + arg[i] + } } opt = $('