-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1631 #1632
Fixes #1631 #1632
Conversation
* Fix component layout options * Fix component layout options * Fix component layout options * Check remaining available positions in block as well as _supportedLayout
Pass a supportedLayout object to the showDropZones method defined in the editorOriginView so that only the appropriate drop zones are displayed when dragging a component from one block to another.
This is currently going to the master branch, should it not be going to develop? |
Thanks @danielstorey, we'll roll this into the next release :) |
* develop: (296 commits) revert image changes Refactor nesting Localise page title, remove initialize function from models rebase and fix conflicts plus broken stuff localise body text Add block layout options Populate new courses so that they can be previewed Remove test_frontend/ Remove grunt-casperjs from dependencies fix auth source issue Bump timeout for Travis Fix asset preview in place Remove test data both before and after tests Add extended timeout to after() in addition to before() Reinstate longer timeout Add grunt to deps Temporarily disable casperjs tests Update package.json prior for next release Update mocha Tidy up mocha config ... # Conflicts: # frontend/src/modules/editor/contentObject/views/editorPageComponentListView.js # frontend/src/modules/editor/contentObject/views/editorPageComponentView.js # frontend/src/modules/editor/global/views/editorOriginView.js
Fix conflicts with refactored develop
}).$el); | ||
this.$('.editor-component-list-sidebar-list').append(new EditorComponentListItemView({ | ||
model: componentType, | ||
availablePositions: availablePositions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
availablePositions
could now potentionally be undefined
. Suggest line 87 is moved out to sit above the if statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like that?¿
parentView: this.parentView, | ||
searchTerms: componentType.get('displayName').toLowerCase() | ||
}).$el); | ||
this.$('.editor-component-list-sidebar-list').append(new EditorComponentListItemView({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting an error when I try to add a component. I don't think the view should have been renamed here?
Ensure only the supported drop zones are displayed when dragging a component from one block to another.