mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 08:09:58 +03:00
Put presence management behind a labs setting
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
854394cb2e
commit
0b20681f6a
3 changed files with 13 additions and 1 deletions
|
@ -34,6 +34,10 @@ const FEATURES = [
|
||||||
id: 'feature_pinning',
|
id: 'feature_pinning',
|
||||||
name: _td("Message Pinning"),
|
name: _td("Message Pinning"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'feature_presence_management',
|
||||||
|
name: _td("Presence Management"),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -22,6 +22,7 @@ import MatrixClientPeg from "../../../MatrixClientPeg";
|
||||||
import AccessibleButton from '../elements/AccessibleButton';
|
import AccessibleButton from '../elements/AccessibleButton';
|
||||||
import Presence from "../../../Presence";
|
import Presence from "../../../Presence";
|
||||||
import dispatcher from "../../../dispatcher";
|
import dispatcher from "../../../dispatcher";
|
||||||
|
import UserSettingsStore from "../../../UserSettingsStore";
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'MemberPresenceAvatar',
|
displayName: 'MemberPresenceAvatar',
|
||||||
|
@ -112,10 +113,16 @@ module.exports = React.createClass({
|
||||||
<MemberAvatar member={this.props.member} width={this.props.width} height={this.props.height}
|
<MemberAvatar member={this.props.member} width={this.props.width} height={this.props.height}
|
||||||
resizeMethod={this.props.resizeMethod}/>
|
resizeMethod={this.props.resizeMethod}/>
|
||||||
);
|
);
|
||||||
const statusNode = (
|
let statusNode = (
|
||||||
<span className={"mx_MemberPresenceAvatar_status mx_MemberPresenceAvatar_status_" + this.state.status}/>
|
<span className={"mx_MemberPresenceAvatar_status mx_MemberPresenceAvatar_status_" + this.state.status}/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// LABS: Disable presence management functions for now
|
||||||
|
if (!UserSettingsStore.isFeatureEnabled("feature_presence_management")) {
|
||||||
|
statusNode = null;
|
||||||
|
onClickFn = null;
|
||||||
|
}
|
||||||
|
|
||||||
let avatar = (
|
let avatar = (
|
||||||
<div className="mx_MemberPresenceAvatar">
|
<div className="mx_MemberPresenceAvatar">
|
||||||
{avatarNode}
|
{avatarNode}
|
||||||
|
|
|
@ -620,6 +620,7 @@
|
||||||
"Cancel": "Cancel",
|
"Cancel": "Cancel",
|
||||||
"or": "or",
|
"or": "or",
|
||||||
"Message Pinning": "Message Pinning",
|
"Message Pinning": "Message Pinning",
|
||||||
|
"Presence Management": "Presence Management",
|
||||||
"Active call": "Active call",
|
"Active call": "Active call",
|
||||||
"Monday": "Monday",
|
"Monday": "Monday",
|
||||||
"Tuesday": "Tuesday",
|
"Tuesday": "Tuesday",
|
||||||
|
|
Loading…
Reference in a new issue