mirror of
1
Fork 0
forgejo/templates
Xinyu Zhou 26f941fbda
Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562)
This patch:
- Use `<button>` replace anchor link `<a>` in **_Delete/Restore
Branch_** button to avoid unexpected page jump before restore branch
actually done.
- Also replace right side buttons with `<button>` in branch list, let
some screen readers know they are buttons.


## Before
click restore branch -> restore triggered -> page refreshed, but branch
status not update -> manually refresh page

<details>


https://user-images.githubusercontent.com/76462613/197389108-5a0bd259-0455-40b2-92ac-4326900276f8.mp4

</details>

## After
waiting restore done -> page refresh -> branch status update

<details>


https://user-images.githubusercontent.com/76462613/197428683-616fcbd2-70f9-4572-bf76-e0b7f77b6dd7.mp4

</details>

Signed-off-by: baronbunny <its@baronbunny.cn>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-11-24 20:29:43 +08:00
..
admin Webhook list enhancements (#21893) 2022-11-22 07:10:42 +08:00
api/packages/pypi Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
base Allow disable RSS/Atom feed (#21622) 2022-11-21 13:14:58 +08:00
code Run `make fmt` (#21437) 2022-10-13 21:33:54 -04:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Fix flex layout for repo list icons (#21896) 2022-11-23 22:01:30 -06:00
mail Add team member invite by email (#20307) 2022-10-19 14:40:28 +02:00
org Embed Matrix icon as SVG (#21890) 2022-11-21 20:25:26 +00:00
package Add package registry cleanup rules (#21658) 2022-11-20 16:08:38 +02:00
repo Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562) 2022-11-24 20:29:43 +08:00
shared Timeline and color tweaks (#21799) 2022-11-19 12:02:30 +08:00
status Remove fomantic image module (#21145) 2022-09-12 17:08:46 +08:00
swagger Support comma-delimited string as labels in issue template (#21831) 2022-11-19 15:22:15 +00:00
user Add option to enable CAPTCHA validation for login (#21638) 2022-11-22 21:13:18 +00:00
home.tmpl fix(web): add `alt` for logo in home page (#21887) 2022-11-21 15:09:55 -05:00
install.tmpl Clean up formatting on install page (#21668) 2022-11-03 20:41:01 +00:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00