Skip to content

Commit

Permalink
🐛 Show all labels in selector that can be edited by labeler (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit authored Sep 19, 2024
1 parent a9debb6 commit 0fd04c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/actions/ModActionPanel/QuickAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ function Form(
setModEventType(MOD_EVENTS.TAKEDOWN)
}),
)

return (
<>
{/* The inline styling is not ideal but there's no easy way to set calc() values in tailwind */}
Expand Down Expand Up @@ -659,10 +658,11 @@ function Form(
name="labels"
formId={FORM_ID}
defaultLabels={currentLabels.filter((label) => {
const isExternalLabel = allLabels.some((l) => {
return l.val === label && l.src !== config.did
// If there's a label where the source is the current labeler, it's editable
const isEditableLabel = allLabels.some((l) => {
return l.val === label && l.src === config.did
})
return !isSelfLabel(label) && !isExternalLabel
return !isSelfLabel(label) && isEditableLabel
})}
/>
</div>
Expand Down

0 comments on commit 0fd04c1

Please sign in to comment.