show indicators for channels
This commit is contained in:
@@ -902,6 +902,13 @@ i.search {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contact-box img.channel {
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-left: 0.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Online-offline indicator positioned inside avatar-box */
|
/* Online-offline indicator positioned inside avatar-box */
|
||||||
.avatar-box .online, .offline {
|
.avatar-box .online, .offline {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -86,6 +86,7 @@ class ContactList extends React.Component {
|
|||||||
showCheckmark={showCheckmark}
|
showCheckmark={showCheckmark}
|
||||||
selected={selected}
|
selected={selected}
|
||||||
showOnline={this.props.showOnline && !isChannel}
|
showOnline={this.props.showOnline && !isChannel}
|
||||||
|
isChannel={isChannel}
|
||||||
onSelected={this.props.onTopicSelected}
|
onSelected={this.props.onTopicSelected}
|
||||||
showContextMenu={this.props.showContextMenu}
|
showContextMenu={this.props.showContextMenu}
|
||||||
item={key}
|
item={key}
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ export default class Contact extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className="text-box">
|
<div className="text-box">
|
||||||
<div><span className="contact-title">{title}</span>
|
<div><span className="contact-title">{title}</span>
|
||||||
|
{this.props.isChannel ? <img src="/img/channel.png" className="channel" alt="channel" /> : null}
|
||||||
<UnreadBadge count={this.props.unread} /><ContactBadges badges={icon_badges} />
|
<UnreadBadge count={this.props.unread} /><ContactBadges badges={icon_badges} />
|
||||||
</div>
|
</div>
|
||||||
{this.props.comment ? <div className="contact-comment">{this.props.comment}</div> : null}
|
{this.props.comment ? <div className="contact-comment">{this.props.comment}</div> : null}
|
||||||
|
|||||||
+6
-1
@@ -7232,6 +7232,7 @@ class ContactList extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component
|
|||||||
showCheckmark: showCheckmark,
|
showCheckmark: showCheckmark,
|
||||||
selected: selected,
|
selected: selected,
|
||||||
showOnline: this.props.showOnline && !isChannel,
|
showOnline: this.props.showOnline && !isChannel,
|
||||||
|
isChannel: isChannel,
|
||||||
onSelected: this.props.onTopicSelected,
|
onSelected: this.props.onTopicSelected,
|
||||||
showContextMenu: this.props.showContextMenu,
|
showContextMenu: this.props.showContextMenu,
|
||||||
item: key,
|
item: key,
|
||||||
@@ -7364,7 +7365,11 @@ class Contact extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
|
|||||||
className: "text-box"
|
className: "text-box"
|
||||||
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
|
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
|
||||||
className: "contact-title"
|
className: "contact-title"
|
||||||
}, title), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_unread_badge_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
}, title), this.props.isChannel ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
|
||||||
|
src: "/img/channel.png",
|
||||||
|
className: "channel",
|
||||||
|
alt: "channel"
|
||||||
|
}) : null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_unread_badge_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||||
count: this.props.unread
|
count: this.props.unread
|
||||||
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_contact_badges_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_contact_badges_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||||
badges: icon_badges
|
badges: icon_badges
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user