mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
debugger statements back in, some tiny fixes
This commit is contained in:
parent
e89325889b
commit
b44c8ab60b
2 changed files with 6 additions and 3 deletions
|
@ -62,10 +62,12 @@ class AddToStudioModal extends React.Component {
|
|||
}
|
||||
|
||||
componentDidMount() {
|
||||
debugger;
|
||||
this.updateOnOrDirty(this.props.projectStudios, this.props.myStudios);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
debugger;
|
||||
this.updateOnOrDirty(nextProps.projectStudios, nextProps.myStudios);
|
||||
}
|
||||
|
||||
|
@ -121,7 +123,7 @@ class AddToStudioModal extends React.Component {
|
|||
handleSubmit (formData) {
|
||||
// NOTE: ignoring formData for now...
|
||||
this.setState({waiting: true});
|
||||
let onOrDirty = this.state.onOrDirty;
|
||||
const onOrDirty = this.state.onOrDirty;
|
||||
const studiosToAdd = Object.keys(onOrDirty)
|
||||
.reduce(function(accumulator, key) {
|
||||
if (onOrDirty[key].dirty === true &&
|
||||
|
@ -138,12 +140,12 @@ class AddToStudioModal extends React.Component {
|
|||
}
|
||||
return accumulator;
|
||||
}, []);
|
||||
onOrDirty = {};
|
||||
|
||||
// When this modal is opened, and isOpen becomes true,
|
||||
// onOrDirty should start with a clean slate
|
||||
// NOTE: this doesn't seem to be working:
|
||||
this.setState({ onOrDirty: undefined }, () => {
|
||||
debugger;
|
||||
this.props.onAddToStudio(studiosToAdd, studiosToDelete, err => {
|
||||
if (err) log.error(err);
|
||||
this.setState({
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
}
|
||||
|
||||
.studio-list-inner-scrollbox::-webkit-scrollbar {
|
||||
width: 9px;
|
||||
width: 7px;
|
||||
background-color: $ui-blue-10percent-solid;
|
||||
}
|
||||
.studio-list-inner-scrollbox::-webkit-scrollbar-thumb {
|
||||
|
@ -83,6 +83,7 @@
|
|||
$transparent,
|
||||
$ui-blue-10percent
|
||||
);
|
||||
/* background: linear-gradient(180deg, rgba(228,240,255,0) 0%, #E4F0FF 100%); */
|
||||
width: 100%;
|
||||
height: 2rem;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue