STUD-1911, STUD-1932: Publish sections, subsections and units from course outline.
This commit is contained in:
@@ -59,7 +59,7 @@ function(Backbone, _, str, ModuleUtils) {
|
||||
*/
|
||||
"visibility_state": null,
|
||||
/**
|
||||
* True iff the release date of the xblock is in the past.
|
||||
* True if the release date of the xblock is in the past.
|
||||
*/
|
||||
'released_to_students': null,
|
||||
/**
|
||||
@@ -153,6 +153,10 @@ function(Backbone, _, str, ModuleUtils) {
|
||||
return childInfo && childInfo.children.length > 0;
|
||||
},
|
||||
|
||||
isPublishable: function(){
|
||||
return !this.get('published') || this.get('has_changes');
|
||||
},
|
||||
|
||||
/**
|
||||
* Return a list of convenience methods to check affiliation to the category.
|
||||
* @return {Array}
|
||||
|
||||
Reference in New Issue
Block a user