X Tutup
Skip to content

netiquette - Prevent new issue link if disabled#9028

Open
dnicolson wants to merge 1 commit intorefined-github:mainfrom
dnicolson:patch-4
Open

netiquette - Prevent new issue link if disabled#9028
dnicolson wants to merge 1 commit intorefined-github:mainfrom
dnicolson:patch-4

Conversation

@dnicolson
Copy link
Contributor

This prevents the new issue link from being displayed if issues are disabled. rgh-netiquette is similarly affected, but the copy isn't as easily updated.

Test URLs

palera1n/loader#66

Screenshot

Before After
PixelSnap 2026-03-02 at 20 32 38@2x PixelSnap 2026-03-02 at 20 32 21@2x


export function getResolvedText(closingDate: Date): JSX.Element {
const ago = <strong>{twas(closingDate.getTime())}</strong>;
const canOpenNewIssue = elementExists('li:has([data-content="Issues"])');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SunsetTechuila
Copy link
Member

In such cases, it might be better not to display the banner at all. What do you think @fregante?

@fregante
Copy link
Member

Yes 👆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup