From c6e7b5d552d394552741300f10174ca2c0d36e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 19 Dec 2019 10:09:39 +0000 Subject: [PATCH] add translation keys for errors --- www/common/common-ui-elements.js | 4 ++-- www/teams/inner.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 5f4e0b9eb..72a8dde67 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1743,10 +1743,10 @@ define([ if (obj && obj.error) { waitFor.abort(); $(linkSpin).hide(); - $(linkForm).show(); // XXX DB: check this is the right place to put things back + $(linkForm).show(); $nav.find('button.cp-teams-invite-create').show(); $nav.find('button.cp-teams-invite-copy').hide(); - return void $(linkError).text(Messages.team_inviteLinkError+obj.error).show(); // XXX + return void $(linkError).text(Messages.team_inviteLinkError).show(); } // Display result here $(linkSpin).hide(); diff --git a/www/teams/inner.js b/www/teams/inner.js index 06f23c39d..b4e089047 100644 --- a/www/teams/inner.js +++ b/www/teams/inner.js @@ -1173,7 +1173,7 @@ define([ sframeChan.query('Q_ANON_GET_PREVIEW_CONTENT', { seeds: seeds }, waitFor(function (err, json) { if (json && json.error) { // err === DELETED: different message? - $(errorBlock).text(Messages.error + json.error).show(); // XXX + $(errorBlock).text(Messages.team_inviteInvalidLinkError).show(); waitFor.abort(); $div.empty(); return;