From 9c373377cfa44fe428c8a4f351930166475afcb8 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 27 Jul 2021 03:40:48 +0530 Subject: [PATCH] send feedback for UI related to the new link functionality --- www/common/common-ui-elements.js | 5 +++-- www/common/drive-ui.js | 2 +- www/common/inner/share.js | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index eba151551..99d506347 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -3057,19 +3057,19 @@ define([ var buttons = [{ name: Messages.friendRequest_later, onClick: function () { - // XXX feedback if (clicked) { return true; } clicked = true; + Feedback.send('LINK_RECEIVED_LATER'); }, keys: [27] }, { className: 'primary', name: Messages.link_open, onClick: function () { - // XXX feedback if (clicked) { return true; } clicked = true; common.openUnsafeURL(url); + Feedback.send("LINK_RECEIVED_OPEN"); }, keys: [13] }, { @@ -3088,6 +3088,7 @@ define([ }, function () { modal.closeModal(); dismiss(); + Feedback.send("LINK_RECEIVED_STORE"); }); return true; }, diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 78618f7ed..82cabec8f 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -2785,7 +2785,7 @@ define([ name: n, url: u }, refresh); - // XXX feedback + Feedback.send("LINK_CREATED"); }, keys: [13] }); diff --git a/www/common/inner/share.js b/www/common/inner/share.js index 5225ea818..4bcf0d621 100644 --- a/www/common/inner/share.js +++ b/www/common/inner/share.js @@ -124,6 +124,9 @@ define([ channel: mailbox.notifications, curvePublic: mailbox.curvePublic }); + if (config.static) { + Feedback.send("LINK_SHARED_WITH_CONTACT"); + } return; } } @@ -154,6 +157,7 @@ define([ }, function () { UI.log(Messages.saved); }); + Feedback.send("LINK_ADDED_TO_DRIVE"); return; } sframeChan.query('Q_STORE_IN_TEAM', {