From f98543bb831efe73be6a6b8c926a58b7e74e60a4 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 18 Dec 2019 18:02:33 +0100 Subject: [PATCH] Add category icon for link invitation --- www/teams/inner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/teams/inner.js b/www/teams/inner.js index 18b17551d..6525f6f9e 100644 --- a/www/teams/inner.js +++ b/www/teams/inner.js @@ -217,6 +217,7 @@ define([ if (key === 'chat') { $category.append($('', {'class': 'fa fa-comments'})); } if (key === 'drive') { $category.append($('', {'class': 'fa fa-hdd-o'})); } if (key === 'admin') { $category.append($('', {'class': 'fa fa-cogs'})); } + if (key === 'link') { $category.append($('', {'class': 'fa fa-envelope'})); } if (key === active) { $category.addClass('cp-leftside-active'); @@ -1156,7 +1157,7 @@ define([ // Get preview content. var sframeChan = common.getSframeChannel(); sframeChan.query('Q_ANON_GET_PREVIEW_CONTENT', { seeds: seeds }, waitFor(function (json) { - if (json && json.error) { // XXX this is failing with "team is disabled" + if (json && json.error) { // XXX APP.module is not ready yet? // err === DELETED: different message? $(errorBlock).text(Messages.error + json.error).show(); // XXX @@ -1169,7 +1170,7 @@ define([ $div.append(h('div.cp-teams-invite-from', [ Messages.team_inviteFrom || 'From:', // XXX displayUser(common, json.author) - ])); + ])); $div.append(UI.setHTML(h('p.cp-teams-invite-to'), Messages._getKey('team_inviteFromMsg', [Util.fixHTML(json.author.displayName),