Add category icon for link invitation
This commit is contained in:
parent
7008c71605
commit
f98543bb83
@ -217,6 +217,7 @@ define([
|
|||||||
if (key === 'chat') { $category.append($('<span>', {'class': 'fa fa-comments'})); }
|
if (key === 'chat') { $category.append($('<span>', {'class': 'fa fa-comments'})); }
|
||||||
if (key === 'drive') { $category.append($('<span>', {'class': 'fa fa-hdd-o'})); }
|
if (key === 'drive') { $category.append($('<span>', {'class': 'fa fa-hdd-o'})); }
|
||||||
if (key === 'admin') { $category.append($('<span>', {'class': 'fa fa-cogs'})); }
|
if (key === 'admin') { $category.append($('<span>', {'class': 'fa fa-cogs'})); }
|
||||||
|
if (key === 'link') { $category.append($('<span>', {'class': 'fa fa-envelope'})); }
|
||||||
|
|
||||||
if (key === active) {
|
if (key === active) {
|
||||||
$category.addClass('cp-leftside-active');
|
$category.addClass('cp-leftside-active');
|
||||||
@ -1156,7 +1157,7 @@ define([
|
|||||||
// Get preview content.
|
// Get preview content.
|
||||||
var sframeChan = common.getSframeChannel();
|
var sframeChan = common.getSframeChannel();
|
||||||
sframeChan.query('Q_ANON_GET_PREVIEW_CONTENT', { seeds: seeds }, waitFor(function (json) {
|
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?
|
// XXX APP.module is not ready yet?
|
||||||
// err === DELETED: different message?
|
// err === DELETED: different message?
|
||||||
$(errorBlock).text(Messages.error + json.error).show(); // XXX
|
$(errorBlock).text(Messages.error + json.error).show(); // XXX
|
||||||
@ -1169,7 +1170,7 @@ define([
|
|||||||
$div.append(h('div.cp-teams-invite-from', [
|
$div.append(h('div.cp-teams-invite-from', [
|
||||||
Messages.team_inviteFrom || 'From:', // XXX
|
Messages.team_inviteFrom || 'From:', // XXX
|
||||||
displayUser(common, json.author)
|
displayUser(common, json.author)
|
||||||
]));
|
]));
|
||||||
$div.append(UI.setHTML(h('p.cp-teams-invite-to'),
|
$div.append(UI.setHTML(h('p.cp-teams-invite-to'),
|
||||||
Messages._getKey('team_inviteFromMsg',
|
Messages._getKey('team_inviteFromMsg',
|
||||||
[Util.fixHTML(json.author.displayName),
|
[Util.fixHTML(json.author.displayName),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user