Merge branch 'scene-fix' into 'dev'
Fixed style issues on scene share guest button See merge request sa4-2020/the-sanmarinoes/frontend!126
This commit is contained in:
commit
3dcd24f36d
1 changed files with 8 additions and 4 deletions
|
@ -9,6 +9,7 @@ import {
|
||||||
Input,
|
Input,
|
||||||
Dropdown,
|
Dropdown,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
|
Segment,
|
||||||
} from "semantic-ui-react";
|
} from "semantic-ui-react";
|
||||||
import SelectIcons from "./SelectIcons";
|
import SelectIcons from "./SelectIcons";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
|
@ -110,15 +111,15 @@ class SceneModal extends Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
closeModal = (e) => {
|
closeModal = (e) => {
|
||||||
this.setState({ openModal: false });
|
this.setState({ ...this.state, openModal: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
openModal = (e) => {
|
openModal = (e) => {
|
||||||
this.setState({ openModal: true });
|
this.setState({ ...this.state, openModal: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
updateIcon(e) {
|
updateIcon(e) {
|
||||||
this.setState({ selectedIcon: e });
|
this.setState({ ...this.state, selectedIcon: e });
|
||||||
}
|
}
|
||||||
|
|
||||||
setCopyFrom(_, copyFrom) {
|
setCopyFrom(_, copyFrom) {
|
||||||
|
@ -127,7 +128,7 @@ class SceneModal extends Component {
|
||||||
|
|
||||||
setGuestAccessEnabled(val) {
|
setGuestAccessEnabled(val) {
|
||||||
console.log(this.state, val);
|
console.log(this.state, val);
|
||||||
this.setState({ guestAccessEnabled: val });
|
this.setState({ ...this.state, guestAccessEnabled: val });
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -223,13 +224,16 @@ class SceneModal extends Component {
|
||||||
)}
|
)}
|
||||||
{this.type === "modify" ? (
|
{this.type === "modify" ? (
|
||||||
<Form.Field>
|
<Form.Field>
|
||||||
|
<Segment compact style={{ marginBottom: "1rem"}}>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
label="Enable guest access"
|
||||||
checked={this.state.guestAccessEnabled}
|
checked={this.state.guestAccessEnabled}
|
||||||
toggle
|
toggle
|
||||||
onChange={(e, val) =>
|
onChange={(e, val) =>
|
||||||
this.setGuestAccessEnabled(val.checked)
|
this.setGuestAccessEnabled(val.checked)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</Segment>
|
||||||
</Form.Field>
|
</Form.Field>
|
||||||
) : null}
|
) : null}
|
||||||
</Form>
|
</Form>
|
||||||
|
|
Loading…
Reference in a new issue