gitea/web_src/js/modules
Lunny Xiao 7de114a332
Rework delete org and rename org UI (#34762)
# What's the problem of the original implementation

Renaming organization will mix with organization's information change
make the operation difficult to keep consistent.

This PR created a danger zone like what's repository setting. It also
moved organization's `rename` and `delete` operations to this zone. The
original updating repository will not change the name any more.

This is also a step to extract the `updaterepository` function
completely.

Before:


![image](https://github.com/user-attachments/assets/d097dfdf-07be-4d79-8fcf-e78822515575)

![image](https://github.com/user-attachments/assets/42ee832c-cb44-41ec-9fe3-92a1c94747d2)

After:


![image](https://github.com/user-attachments/assets/f7700ed7-f104-4302-a924-09e118f24be3)

![image](https://github.com/user-attachments/assets/4c49952a-578e-4d14-bd01-4a68c9e02412)

![image](https://github.com/user-attachments/assets/814829d3-00fe-4e87-ae05-625c129170d2)

![image](https://github.com/user-attachments/assets/b067b263-c909-4b48-b23c-73481c32d350)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-21 18:21:48 +00:00
..
fomantic Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +00:00
diff-file.test.ts support the open-icon of folder (#34168) 2025-04-28 19:51:32 -07:00
diff-file.ts support the open-icon of folder (#34168) 2025-04-28 19:51:32 -07:00
fetch.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
fetch.ts Fix: passkey login not working anymore (#32623) 2024-11-26 16:04:17 +00:00
fomantic.ts Fix various Fomantic UI and htmx problems (#33851) 2025-03-11 11:35:05 -07:00
init.ts Refactor global init code and add more comments (#33755) 2025-03-03 10:57:28 +08:00
observer.ts Fix dropdown delegating and some UI problems (#34014) 2025-03-26 02:51:22 +00:00
sortable.ts Refactor repo-projects.ts (#32892) 2024-12-19 08:37:12 +00:00
tippy.ts Fix line-button issue after file selection in file tree (#34574) 2025-06-02 09:52:12 +08:00
toast.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
toast.ts Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +00:00
worker.ts Fix some typescript issues (#32586) 2024-11-21 13:57:42 +00:00