UX: class for small posts when assigns are private
This commit is contained in:
parent
a907a98d87
commit
7ef731a5b0
|
|
@ -489,6 +489,12 @@ function initialize(api) {
|
|||
}
|
||||
}
|
||||
|
||||
api.addPostSmallActionClassesCallback((post) => {
|
||||
if (post.actionCode.includes("assigned") && !siteSettings.assigns_public) {
|
||||
return ["private-assign"];
|
||||
}
|
||||
});
|
||||
|
||||
api.addAdvancedSearchOptions(
|
||||
api.getCurrentUser() && api.getCurrentUser().can_assign
|
||||
? {
|
||||
|
|
|
|||
|
|
@ -258,3 +258,11 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.private-assign {
|
||||
// when assigns are not public, make the description look like a whisper
|
||||
.small-action-custom-message {
|
||||
font-style: italic;
|
||||
color: var(--primary-medium);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue