hide integration management behind labs checkbox
parent
90e5ab2ca3
commit
cf70f1731e
|
@ -34,7 +34,11 @@ const LABS_FEATURES = [
|
||||||
{
|
{
|
||||||
name: 'End-to-End Encryption',
|
name: 'End-to-End Encryption',
|
||||||
id: 'e2e_encryption'
|
id: 'e2e_encryption'
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
name: 'Integration Management',
|
||||||
|
id: 'integration_management'
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
// if this looks like a release, use the 'version' from package.json; else use
|
// if this looks like a release, use the 'version' from package.json; else use
|
||||||
|
|
|
@ -67,18 +67,14 @@ module.exports = React.createClass({
|
||||||
tags_changed: false,
|
tags_changed: false,
|
||||||
tags: tags,
|
tags: tags,
|
||||||
areNotifsMuted: areNotifsMuted,
|
areNotifsMuted: areNotifsMuted,
|
||||||
<<<<<<< HEAD
|
|
||||||
isRoomPublished: this._originalIsRoomPublished, // loaded async in componentWillMount
|
|
||||||
scalar_token: null,
|
|
||||||
scalar_error: null,
|
|
||||||
=======
|
|
||||||
// isRoomPublished is loaded async in componentWillMount so when the component
|
// isRoomPublished is loaded async in componentWillMount so when the component
|
||||||
// inits, the saved value will always be undefined, however getInitialState()
|
// inits, the saved value will always be undefined, however getInitialState()
|
||||||
// is also called from the saving code so we must return the correct value here
|
// is also called from the saving code so we must return the correct value here
|
||||||
// if we have it (although this could race if the user saves before we load whether
|
// if we have it (although this could race if the user saves before we load whether
|
||||||
// the room is published or not).
|
// the room is published or not).
|
||||||
isRoomPublished: this._originalIsRoomPublished,
|
isRoomPublished: this._originalIsRoomPublished,
|
||||||
>>>>>>> develop
|
scalar_token: null,
|
||||||
|
scalar_error: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -621,6 +617,7 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
var integrations_section;
|
var integrations_section;
|
||||||
|
if (UserSettingsStore.isFeatureEnabled("integration_management")) {
|
||||||
if (this.state.scalar_token) {
|
if (this.state.scalar_token) {
|
||||||
integrations_section = (
|
integrations_section = (
|
||||||
<div className="mx_RoomSettings_settings">
|
<div className="mx_RoomSettings_settings">
|
||||||
|
@ -634,6 +631,7 @@ module.exports = React.createClass({
|
||||||
} else {
|
} else {
|
||||||
integrations_section = <Loader />;
|
integrations_section = <Loader />;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomSettings">
|
<div className="mx_RoomSettings">
|
||||||
|
|
Loading…
Reference in New Issue