Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 70318da

Browse files
UX: Add class to assign topic list items (#649)
1 parent a600428 commit 70318da

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

assets/javascripts/discourse/initializers/assignment-list-actions.gjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ export default {
2929
return columns;
3030
}
3131
);
32+
api.registerValueTransformer(
33+
"topic-list-item-class",
34+
({ value: classes }) => {
35+
if (ASSIGN_LIST_ROUTES.includes(router.currentRouteName)) {
36+
classes.push("assigned-list-item");
37+
}
38+
return classes;
39+
}
40+
);
3241
});
3342
},
3443
};

0 commit comments

Comments
 (0)