@nualang/nualang-ui-components 0.1.1253 → 0.1.1254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -176,7 +176,7 @@ function CreateAssignmentDialog({
|
|
|
176
176
|
(0, _react.useEffect)(() => {
|
|
177
177
|
setAssignment(prev => ({
|
|
178
178
|
...prev,
|
|
179
|
-
assignedStudents: members?.map(member => member.memberId)
|
|
179
|
+
assignedStudents: initialData.assignedStudents?.length ? initialData.assignedStudents : members?.map(member => member.memberId)
|
|
180
180
|
}));
|
|
181
181
|
}, [members]);
|
|
182
182
|
(0, _react.useEffect)(() => {
|
|
@@ -87,6 +87,18 @@ function OverflowMenu({
|
|
|
87
87
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
88
88
|
children: t("leave_course")
|
|
89
89
|
})]
|
|
90
|
+
}), classroomId && !isClassroomArchived && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, {
|
|
91
|
+
onClick: () => {
|
|
92
|
+
localStorage.setItem("focusCourseSettings", true);
|
|
93
|
+
window.location.hash = "Settings";
|
|
94
|
+
},
|
|
95
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CardElements.CardMenuIcon, {
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Settings.default, {
|
|
97
|
+
fontSize: "small"
|
|
98
|
+
})
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
100
|
+
children: t("change_settings")
|
|
101
|
+
})]
|
|
90
102
|
}), !isClassroomArchived && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
91
103
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tooltip, {
|
|
92
104
|
title: !canDuplicateCourse ? t("duplicate_disabled_tooltip") : "",
|
|
@@ -117,18 +129,6 @@ function OverflowMenu({
|
|
|
117
129
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
118
130
|
children: t("remove_course")
|
|
119
131
|
})]
|
|
120
|
-
}), classroomId && !isClassroomArchived && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, {
|
|
121
|
-
onClick: () => {
|
|
122
|
-
localStorage.setItem("focusCourseSettings", true);
|
|
123
|
-
window.location.hash = "Settings";
|
|
124
|
-
},
|
|
125
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CardElements.CardMenuIcon, {
|
|
126
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Settings.default, {
|
|
127
|
-
fontSize: "small"
|
|
128
|
-
})
|
|
129
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
130
|
-
children: t("change_settings")
|
|
131
|
-
})]
|
|
132
132
|
})]
|
|
133
133
|
});
|
|
134
134
|
}
|
|
@@ -127,7 +127,7 @@ function CourseSettings({
|
|
|
127
127
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControlLabel, {
|
|
128
128
|
value: "collaborators",
|
|
129
129
|
control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Radio, {}),
|
|
130
|
-
label: t("
|
|
130
|
+
label: t("collaborators_only"),
|
|
131
131
|
disabled: duplicated
|
|
132
132
|
})]
|
|
133
133
|
})]
|