sindresorhus/refined-github

Change gist creation dropdown to 2 separate buttons #4366

Araxeus posted onGitHub

Similar to other already existing tweaks (draft PR), Separate "Public Gist" and "Secret Gist" to 2 buttons instead of 1 button and a dropdown.

Gist creation dropdown example: image


This feature should be almost a copy-paste of separate-draft-pr-button.

If you do copy-paste, please review every line to ensure it still makes sense.

posted by fregante almost 4 years ago

https://github.com/sindresorhus/refined-github/blob/16b08dec626e75c9ce05d0e3283526508e5f3ee3/source/features/separate-draft-pr-button.tsx#L8 Change to const draftPROption = select('.new-pr-form [name="draft"], #new_gist [name="gist[public]"]');

Works perfectly, however it needs some css work. image

I am not going to work on this, anyone can pick this up

posted by yakov116 almost 4 years ago

I made PR #4382

posted by darkred almost 4 years ago

Fund this Issue

$0.00
Funded

Pull requests