PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.3.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.3.9
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / assets / src / apps / js / admin / editor / getters / course-section.js

course-section.js in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.3.9, at assets/src/apps/js/admin/editor/getters/course-section.js

32 lines 788 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const CourseCurriculum = {
2 sections: function( state ) {
3 return state.sections || [];
4 },
5 urlEdit: function( state ) {
6 return state.urlEdit;
7 },
8 hiddenSections: function( state ) {
9 return state.sections
10 .filter( function( section ) {
11 return ! section.open;
12 } )
13 .map( function( section ) {
14 return parseInt( section.id );
15 } );
16 },
17 isHiddenAllSections: function( state, getters ) {
18 var sections = getters.sections;
19 var hiddenSections = getters.hiddenSections;
20
21 return hiddenSections.length === sections.length;
22 },
23 statusUpdateSection: function( state ) {
24 return state.statusUpdateSection;
25 },
26 statusUpdateSectionItem: function( state ) {
27 return state.statusUpdateSectionItem;
28 },
29 };
30
31 export default CourseCurriculum;
32