From 581a6e0a26d67d7f9d9575c3cd1673e306feaf07 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 16 May 2022 17:59:25 -0700 Subject: [PATCH] Removed Desktop & Files router links when on local device. --- views/default.handlebars | 1 + 1 file changed, 1 insertion(+) diff --git a/views/default.handlebars b/views/default.handlebars index 3c433517..6e5a0798 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -4589,6 +4589,7 @@ for (var i in serverinfo.devicemeshrouterlinks.extralinks) { var r = serverinfo.devicemeshrouterlinks.extralinks[i], p = '\"' + r.protocol + '\"'; if (doesDeviceMatchFilterTags(node, r.filter)) { + if ((node.mtype == 3) && ((r.protocol == 'mcrdesktop') || (r.protocol == 'mcrfiles'))) continue; if (typeof r.protocol == 'number') { p = r.protocol; } else if (r.protocol == 'http') { p = 1; } else if (r.protocol == 'https') { p = 2; } else if (r.protocol == 'rdp') { p = 3; } else if (r.protocol == 'ssh') { p = 4; } else if (r.protocol == 'scp') { p = 5; } else if (r.protocol == 'mcrdesktop') { p = 6; } else if (r.protocol == 'mcrfiles') { p = 7; } x += '' + r.name + ' '; }