Skip to content
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

Merged
merged 8 commits into from
Aug 24, 2017
Merged

Fixes #1631 #1632

merged 8 commits into from
Aug 24, 2017

Conversation

danielstorey
Copy link
Member

Ensure only the supported drop zones are displayed when dragging a component from one block to another.

chucklorenz and others added 3 commits April 18, 2017 06:21
* 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.
@taylortom taylortom added this to the 0.4.0 Refactor milestone May 17, 2017
@canstudios-nicolaw
Copy link
Contributor

This is currently going to the master branch, should it not be going to develop?

@danielstorey danielstorey changed the base branch from master to develop July 28, 2017 08:22
@taylortom
Copy link
Member

Thanks @danielstorey, we'll roll this into the next release :)

@taylortom taylortom removed the request for review from tomgreenfield August 21, 2017 12:05
taylortom and others added 3 commits August 22, 2017 16:50
* 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,
Copy link
Contributor

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.

Copy link
Member

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({
Copy link
Contributor

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?

@taylortom taylortom merged commit a317ee5 into adaptlearning:develop Aug 24, 2017
@danielstorey danielstorey deleted the issue/1631 branch August 24, 2017 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants