Rename SettingsCheckbox to be a bit more generic
Splitting out the logic to two components doesn't make sense, but this isn't always a checkbox. Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
3efb0fdeeb
commit
f070604350
3 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
render: function() {
|
||||
const SettingsCheckbox = sdk.getComponent("elements.SettingsCheckbox");
|
||||
const SettingsFlag = sdk.getComponent("elements.SettingsFlag");
|
||||
const roomId = this.props.room.roomId;
|
||||
|
||||
let previewsForAccount = null;
|
||||
|
@ -53,7 +53,7 @@ module.exports = React.createClass({
|
|||
if (SettingsStore.canSetValue("urlPreviewsEnabled", roomId, "room")) {
|
||||
previewsForRoom = (
|
||||
<label>
|
||||
<SettingsCheckbox name="urlPreviewsEnabled"
|
||||
<SettingsFlag name="urlPreviewsEnabled"
|
||||
level="room"
|
||||
roomId={this.props.room.roomId}
|
||||
isExplicit={true} />
|
||||
|
@ -68,7 +68,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
|
||||
let previewsForRoomAccount = (
|
||||
<SettingsCheckbox name="urlPreviewsEnabled"
|
||||
<SettingsFlag name="urlPreviewsEnabled"
|
||||
level="room-account"
|
||||
roomId={this.props.room.roomId}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue