', {id: HEADER_ID, class:'cp-sidebarlayout-element'}).appendTo(APP.$rightside);
addAvatar($header);
var $rightside = $('
', {id: HEADER_RIGHT_ID}).appendTo($header);
addDisplayName($rightside);
addLink($rightside);
addFriendRequest($rightside);
+ addMuteButton($rightside);
addDescription(APP.$rightside);
- addViewButton(APP.$rightside);
+ addViewButton($rightside);
APP.initialized = true;
createLeftside();
}
@@ -409,6 +489,7 @@ define([
refreshLink(data);
refreshDescription(data);
refreshFriendRequest(data);
+ refreshMute(data);
};
var createToolbar = function () {
diff --git a/www/settings/app-settings.less b/www/settings/app-settings.less
index 185b22741..30ff869a0 100644
--- a/www/settings/app-settings.less
+++ b/www/settings/app-settings.less
@@ -184,12 +184,12 @@
&:checked {
& + label {
font-weight: bold;
- background-color: lighten(@colortheme_loading-bg, 20%);
+ background-color: @colortheme_logo-2;
cursor: default;
- border: 1px solid #c1158e;
+ border: 1px solid @colortheme_logo-2;
color: @colortheme_loading-color;
&:hover {
- background-color: lighten(@colortheme_loading-bg, 20%);
+ background-color: @colortheme_logo-2;
}
}
}
@@ -203,10 +203,11 @@
height: 50px;
padding: 5px;
margin: 0 20px;
- border: 1px solid black;
+ color: @colortheme_logo-2;
+ border: 1px solid @colortheme_logo-2;
cursor: pointer;
&:hover {
- background-color: lighten(@colortheme_loading-bg, 10%);
+ background-color: lighten(@colortheme_logo-2, 35%);
}
}
.fa {
@@ -235,6 +236,7 @@
}
input {
width: 70px;
+ padding: 0 5px;
}
select {
width: 100px;
diff --git a/www/teams/inner.js b/www/teams/inner.js
index f11a5e26b..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');
@@ -493,8 +494,9 @@ define([
refreshCreate(common, cb);
});
- makeBlock('drive', function (common, cb) {
+ makeBlock('drive', function (common, cb, $div) {
$('div.cp-team-drive').empty();
+ $div.removeClass('cp-sidebarlayout-element'); // Don't apply buttons and input styles from sidebarlayout
var content = [
h('div.cp-app-drive-container', {tabindex:0}, [
h('div#cp-app-drive-tree'),
@@ -778,7 +780,6 @@ define([
var links = Object.keys(roster).filter(function (k) {
if (!roster[k].pending) { return; }
if (!roster[k].inviteChannel) { return; }
- roster[k].curvePublic = k; // XXX "if (!data.curvePublic) { return; }" in makeMember
return roster[k].role === "VIEWER" || !roster[k].role;
}).map(function (k) {
return makeMember(common, roster[k], me);
@@ -1076,9 +1077,13 @@ define([
errorBlock = h('div.alert.alert-danger', {style: 'display: none;'}),
div
];
+ // "cb" will put the content into the UI.
+ // We're displaying a spinner while we're cryptgetting the preview content
cb(c);
- var declineButton = h('button.btn.btn-danger', Messages.friendRequest_decline);
+ var declineButton = h('button.btn.btn-danger', {
+ style: 'display: none;'
+ }, Messages.friendRequest_decline);
var acceptButton = h('button.btn.btn-primary', Messages.team_inviteJoin || 'JOIN TEAM'); // XXX
var inviteDiv = h('div', [
h('nav', [
@@ -1150,20 +1155,9 @@ define([
nThen(function (waitFor) {
// Get preview content.
- // Use the team module if we're logged in, or sframeChan if we're not
- var f = function (data, cb) {
- if (driveAPP.loggedIn) {
- return void APP.module.execCommand('GET_PREVIEW_CONTENT', data, cb);
- }
- var sframeChan = common.getSframeChannel();
- sframeChan.query('Q_ANON_GET_PREVIEW_CONTENT', data, function (err, json) {
- cb(json);
- });
- };
- f({
- seeds: seeds,
- }, waitFor(function (json) {
- if (json && json.error) { // XXX this is failing with "team is disabled"
+ var sframeChan = common.getSframeChannel();
+ sframeChan.query('Q_ANON_GET_PREVIEW_CONTENT', { seeds: seeds }, waitFor(function (json) {
+ if (json && json.error) {
// XXX APP.module is not ready yet?
// err === DELETED: different message?
$(errorBlock).text(Messages.error + json.error).show(); // XXX
@@ -1176,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),