Install the xblock on this branch into the edxapp Python virtualenv.
# In the same directory as your Vagrantfile:
vagrant ssh -- sudo -u edxapp /edx/bin/pip.edxapp install -e git+https://github.com/replaceafill/xblock-vectordraw.git@issue_7#egg=xblock-vectordraw
Run Studio and LMS
Navigate to a course, and then "Settings > Advanced Settings".
Update the "Advanced Module List" field to contain ["vectordraw"].
Click "Save Changes".
Navigate to the outline and create a new Section, Subsection, and Unit. You will be redirected to the Unit authoring view.
Select "Advanced > Vector Drawing" to create a new Vector Drawing problem.
Click "Preview" and observe the problem icon in the LMS sequence navigation bar.
[x] I tested this: I confirmed that without this patch, vectordraw units use the default ("other") icon in edX LMS. I checked out this branch and confirmed that it makes LMS use the "problem" icon for vectordraw blocks.
[x] I read through the code
[x] I checked for accessibility issues
[ ] Includes documentation - this is a minor change/bugfix, documentation not required.
This fixes xblock-vectordraw/issues/7.
Testing instructions:
Set up a devstack.
Install the xblock on this branch into the edxapp Python virtualenv.
Run Studio and LMS
Navigate to a course, and then "Settings > Advanced Settings".
Update the "Advanced Module List" field to contain ["vectordraw"].
Click "Save Changes".
Navigate to the outline and create a new Section, Subsection, and Unit. You will be redirected to the Unit authoring view.
Select "Advanced > Vector Drawing" to create a new Vector Drawing problem.
Click "Preview" and observe the problem icon in the LMS sequence navigation bar.