You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/packages/frontend/frame-editors/course-editor/editor.ts
+36-24Lines changed: 36 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,9 @@ const COMMANDS = {
74
74
button: "+Student",
75
75
title: "Add one or more students to this course.",
76
76
onClick: ({ props })=>{
77
-
const{ id, actions }=props;
78
-
actions.set_frame_type(id,"course_students");
77
+
// const { id, actions } = props;
78
+
// actions.set_frame_type(id, "course_students");
79
+
const{ actions }=props;
79
80
actions.setModal("add-students");
80
81
},
81
82
},
@@ -86,8 +87,9 @@ const COMMANDS = {
86
87
title:
87
88
"You can start all projects associated with this course so they are immediately ready for your students to use.",
88
89
onClick: ({ props })=>{
89
-
const{ id, actions }=props;
90
-
actions.set_frame_type(id,"course_actions");
90
+
// const { id, actions } = props;
91
+
// actions.set_frame_type(id, "course_actions");
92
+
const{ actions }=props;
91
93
actions.setModal("start-all-projects");
92
94
},
93
95
},
@@ -98,8 +100,9 @@ const COMMANDS = {
98
100
title:
99
101
"Run a bash terminal command in the home directory of all student projects. Up to 30 commands run in parallel, with a timeout of 1 minutes.",
100
102
onClick: ({ props })=>{
101
-
const{ id, actions }=props;
102
-
actions.set_frame_type(id,"course_actions");
103
+
// const { id, actions } = props;
104
+
// actions.set_frame_type(id, "course_actions");
105
+
const{ actions }=props;
103
106
actions.setModal("terminal-command");
104
107
},
105
108
},
@@ -109,8 +112,9 @@ const COMMANDS = {
109
112
button: "Reconfigure",
110
113
title: "Update all projects with correct students, descriptions, etc.",
111
114
onClick: ({ props })=>{
112
-
const{ id, actions }=props;
113
-
actions.set_frame_type(id,"course_actions");
115
+
// const { id, actions } = props;
116
+
// actions.set_frame_type(id, "course_actions");
117
+
const{ actions }=props;
114
118
actions.setModal("reconfigure-all-projects");
115
119
},
116
120
},
@@ -121,8 +125,9 @@ const COMMANDS = {
121
125
title:
122
126
"Export all the grades you have recorded for students in your course to a csv or Python file.",
123
127
onClick: ({ props })=>{
124
-
const{ id, actions }=props;
125
-
actions.set_frame_type(id,"course_actions");
128
+
// const { id, actions } = props;
129
+
// actions.set_frame_type(id, "course_actions");
130
+
const{ actions }=props;
126
131
actions.setModal("export-grades");
127
132
},
128
133
},
@@ -133,8 +138,9 @@ const COMMANDS = {
133
138
title:
134
139
"Send another email to every student who didn't sign up yet. This sends a maximum of one email every 1 day.",
135
140
onClick: ({ props })=>{
136
-
const{ id, actions }=props;
137
-
actions.set_frame_type(id,"course_actions");
141
+
// const { id, actions } = props;
142
+
// actions.set_frame_type(id, "course_actions");
143
+
const{ actions }=props;
138
144
actions.setModal("resend-invites");
139
145
},
140
146
},
@@ -145,8 +151,9 @@ const COMMANDS = {
145
151
title:
146
152
"If you add new students to your course, you can ensure they have all the assignments and handouts that you have already assigned to other students in the course.",
"Create a single common shared project, which everybody -- students and all collaborators on this project (your TAs and other instructors) -- have write access to.",
0 commit comments