silverwind 7d1aed83f4
Disable the 'Add File' button when not able to edit repo (#21503)
Previously, the button would render a dropdown with zero items when
`.CanEnableEditor` was false (for example on a mirror repo). Now it
disables the button instead which is better UX.

<img width="310" alt="image"
src="https://user-images.githubusercontent.com/115237/196546655-7262070d-dd8f-4fbe-ad5c-ecb443a9caef.png">
<img width="292" alt="image"
src="https://user-images.githubusercontent.com/115237/196546694-51ef5792-16d4-463d-aae8-7ef22dba6bb4.png">

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-10-19 16:08:33 +08:00
..
2022-10-14 17:43:25 +08:00
2022-06-27 15:58:46 -05:00
2022-10-17 12:08:21 +08:00
2022-10-17 12:08:21 +08:00
2022-09-04 20:54:23 +01:00
2022-08-08 02:15:11 +03:00
2022-03-30 16:42:47 +08:00
2022-06-27 15:58:46 -05:00