From e485d20f634b7036be8b925f387c6872a39238a9 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Tue, 10 Sep 2024 14:40:47 +0200 Subject: [PATCH] Show android device id only for android (#85) --- server/views/includes/index/tabs/settings.pug | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/views/includes/index/tabs/settings.pug b/server/views/includes/index/tabs/settings.pug index 55fd649..e913841 100644 --- a/server/views/includes/index/tabs/settings.pug +++ b/server/views/includes/index/tabs/settings.pug @@ -44,9 +44,10 @@ block content option(value=connectivity) #{connectivity} +dropdown(getText('index.tab.settings.device'),'deviceId') - each setup in serverConfig[0].setup - if setup.deviceId - option(value=setup.deviceId) #{setup.deviceId} (#{queueNamesAndSize[setup.queue]}) + if (serverConfig[0].setup[0].type === 'android') + each setup in serverConfig[0].setup + if setup.deviceId + option(value=setup.deviceId) #{setup.deviceId} (#{queueNamesAndSize[setup.queue]}) +dropdown(getText('index.tab.settings.iterations'),'iterations') option 1