send feedback for UI related to the new link functionality

pull/1/head
ansuz 3 years ago
parent 854a635c5f
commit 9c373377cf

@ -3057,19 +3057,19 @@ define([
var buttons = [{ var buttons = [{
name: Messages.friendRequest_later, name: Messages.friendRequest_later,
onClick: function () { onClick: function () {
// XXX feedback
if (clicked) { return true; } if (clicked) { return true; }
clicked = true; clicked = true;
Feedback.send('LINK_RECEIVED_LATER');
}, },
keys: [27] keys: [27]
}, { }, {
className: 'primary', className: 'primary',
name: Messages.link_open, name: Messages.link_open,
onClick: function () { onClick: function () {
// XXX feedback
if (clicked) { return true; } if (clicked) { return true; }
clicked = true; clicked = true;
common.openUnsafeURL(url); common.openUnsafeURL(url);
Feedback.send("LINK_RECEIVED_OPEN");
}, },
keys: [13] keys: [13]
}, { }, {
@ -3088,6 +3088,7 @@ define([
}, function () { }, function () {
modal.closeModal(); modal.closeModal();
dismiss(); dismiss();
Feedback.send("LINK_RECEIVED_STORE");
}); });
return true; return true;
}, },

@ -2785,7 +2785,7 @@ define([
name: n, name: n,
url: u url: u
}, refresh); }, refresh);
// XXX feedback Feedback.send("LINK_CREATED");
}, },
keys: [13] keys: [13]
}); });

@ -124,6 +124,9 @@ define([
channel: mailbox.notifications, channel: mailbox.notifications,
curvePublic: mailbox.curvePublic curvePublic: mailbox.curvePublic
}); });
if (config.static) {
Feedback.send("LINK_SHARED_WITH_CONTACT");
}
return; return;
} }
} }
@ -154,6 +157,7 @@ define([
}, function () { }, function () {
UI.log(Messages.saved); UI.log(Messages.saved);
}); });
Feedback.send("LINK_ADDED_TO_DRIVE");
return; return;
} }
sframeChan.query('Q_STORE_IN_TEAM', { sframeChan.query('Q_STORE_IN_TEAM', {

Loading…
Cancel
Save