From d915dea2e2c322810f357060beb5b48e3190392a Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 19 Nov 2021 10:50:18 -0800 Subject: [PATCH] Added guest sharing icon to desktop tab, #3288 --- public/images/icon-share2.png | Bin 0 -> 521 bytes public/styles/style.css | 2 +- views/default.handlebars | 8 +++++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 public/images/icon-share2.png diff --git a/public/images/icon-share2.png b/public/images/icon-share2.png new file mode 100644 index 0000000000000000000000000000000000000000..887f623414989794ac8905de1456be5dfd181e5a GIT binary patch literal 521 zcmV+k0`~ohP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0iH=jK~y+TWBC97 zKLatq%*;$dP*89uFE8&0Aidtg!a@S9mskV%`T0)*DUf0?2J*KNZ9rpVBR>lZ%Re9! zZU6@d$1kD{(AU?u02=TY$b=if&CPw4paFJvcA^3T0@Jy;xZaD2iA`f=W&I2k2HE~W zQBlzWZa_vx27{WKS|A@EU!#hON=Qjb37fpUd>&Ba8xawaMb_5V5+DPEf`Wv#wYAM7 zA|m)fe7FHZLPAv_J`4jjz62U}#?a8v8l(^xfExgG(t8jehS}NKf3~%?v4a%h10cOj zP&O-+1_MS$Mh0MfLwN)M$P{sL@g5KphJh~nEi5cN%iY~w6r=_hfP105yqrl%Nhukm z2^e^(0RaJuz`&ai3PfpX>HLO<2Cxfra&kCBLPGQ^Dk{LCI`2D&PpiHQj%B?80fB2fl_Kx=EOAbL^;y5bMf z27mxC>7D~pa07rY*h`WD!0fCA42xqxgZ=`u^C4SXTgCtX|1$sphfKhjt-f<)00000 LNkvXXu0mjf2Qk9( literal 0 HcmV?d00001 diff --git a/public/styles/style.css b/public/styles/style.css index c60b5eff..0d166cfa 100644 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -2627,7 +2627,7 @@ a { -ms-grid-row: 4; } -#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton, #DeskRefreshButton, #DeskLockButton, #DeskInputLockedButton, #DeskInputUnLockedButton { +#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton, #DeskRefreshButton, #DeskLockButton, #DeskInputLockedButton, #DeskInputUnLockedButton, #DeskGuestShareButton { float: right; margin-top: 1px; margin-right: 4px; diff --git a/views/default.handlebars b/views/default.handlebars index d2d5c417..3b431f99 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -681,6 +681,7 @@ +
@@ -6858,7 +6859,12 @@ if ((serverinfo != null) && (serverinfo.altmessenging != null) && (meshrights & 8) && (connectivity & 1)) { for (var i in serverinfo.altmessenging) { x += ''; } } - if ((serverinfo.guestdevicesharing !== false) && (node.agent != null) && (node.agent.caps & 3) && (connectivity & 1) && ((meshrights & 0x80008) == 0x80008) && ((meshrights == 0xFFFFFFFF) || ((meshrights & 0x1000) == 0))) { x += ''; } + if ((serverinfo.guestdevicesharing !== false) && (node.agent != null) && (node.agent.caps & 3) && (connectivity & 1) && ((meshrights & 0x80008) == 0x80008) && ((meshrights == 0xFFFFFFFF) || ((meshrights & 0x1000) == 0))) { + x += ''; + QV('DeskGuestShareButton', true); + } else { + QV('DeskGuestShareButton', false); + } // Custom UI if ((customui != null) && (customui.devicebuttons != null)) {