This commit is contained in:
2026-07-20 08:17:30 +08:00
parent 1290219077
commit 72a792d585
5 changed files with 35 additions and 19 deletions
+4
View File
@@ -72,10 +72,13 @@ const UNIT_LIST_COMPUTED = [
)`,
},
{
// Not its own column — consumed by the Title cell on the frontend to
// show a "Course" badge when a unit is already attached to at least one Course.
key: "course_count",
label: "Affiliated",
type: "number",
order: 2, // 1: Title, 2: Affiliated, 3: Subscription, 4: Duration — see units.mdl.js
hidden: true,
literal: `(
SELECT CAST(COUNT(*) AS INTEGER)
FROM course_units cu
@@ -88,6 +91,7 @@ const UNIT_LIST_COMPUTED = [
label: "Course Status",
type: "text",
order: 3, // 1: Title, 2: Affiliated, 3: Course Status, 4: Subscription, 5: Duration — see units.mdl.js
hidden: true,
filterable: false,
literal: `(
CASE