generated from nhcarrigan/template
fix: hide all badges when no primary badge is selected
Update the badge display logic so that if a user hasn't selected a primary badge, no badges are shown at all (instead of showing all badges). Changes: - Remove else clause from profile badge section (only show badges-section div if primaryBadge is set) - Remove else clause from comment badge display - Update help text from "show all" to "hide all" in settings - Update help text in admin profile edit modal to match - Clarify that badge selection applies to both profile and comments
This commit is contained in:
@@ -683,7 +683,7 @@ import { ProfileReportWithUsers, CommentReportWithDetails, ReportStatus, ReportR
|
||||
[(ngModel)]="profileEditForm.primaryBadge"
|
||||
class="form-control"
|
||||
>
|
||||
<option [ngValue]="undefined">None (show all badges)</option>
|
||||
<option [ngValue]="undefined">None (hide all badges)</option>
|
||||
@if (editingProfile()?.profile?.badges.isStaff) {
|
||||
<option [ngValue]="PrimaryBadge.STAFF">Staff</option>
|
||||
}
|
||||
@@ -697,7 +697,7 @@ import { ProfileReportWithUsers, CommentReportWithDetails, ReportStatus, ReportR
|
||||
<option [ngValue]="PrimaryBadge.DISCORD">Discord Member</option>
|
||||
}
|
||||
</select>
|
||||
<small class="form-help">Choose one badge to display on profile, or show all</small>
|
||||
<small class="form-help">Choose one badge to display on profile and comments</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user