diff --git a/grademebutton/grademebutton.py b/grademebutton/grademebutton.py index 319271a..85237a0 100644 --- a/grademebutton/grademebutton.py +++ b/grademebutton/grademebutton.py @@ -52,6 +52,10 @@ def workbench_scenarios(): help="This is the text displayed on the button.", ) + # Decorate the view in order to support multiple devices e.g. mobile + # See: https://openedx.atlassian.net/wiki/display/MA/Course+Blocks+API + # section 'View @supports(multi_device) decorator' + @XBlock.supports('multi_device') def student_view(self, context=None): """ Build the fragment for the default student view