add translation keys for errors

pull/1/head
David Benqué 5 years ago
parent ceb7fc4f66
commit c6e7b5d552

@ -1743,10 +1743,10 @@ define([
if (obj && obj.error) { if (obj && obj.error) {
waitFor.abort(); waitFor.abort();
$(linkSpin).hide(); $(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-create').show();
$nav.find('button.cp-teams-invite-copy').hide(); $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 // Display result here
$(linkSpin).hide(); $(linkSpin).hide();

@ -1173,7 +1173,7 @@ define([
sframeChan.query('Q_ANON_GET_PREVIEW_CONTENT', { seeds: seeds }, waitFor(function (err, json) { sframeChan.query('Q_ANON_GET_PREVIEW_CONTENT', { seeds: seeds }, waitFor(function (err, json) {
if (json && json.error) { if (json && json.error) {
// err === DELETED: different message? // err === DELETED: different message?
$(errorBlock).text(Messages.error + json.error).show(); // XXX $(errorBlock).text(Messages.team_inviteInvalidLinkError).show();
waitFor.abort(); waitFor.abort();
$div.empty(); $div.empty();
return; return;

Loading…
Cancel
Save