]> source.dussan.org Git - gitea.git/commit
Refactor toast module (#26677)
authorwxiaoguang <wxiaoguang@gmail.com>
Wed, 23 Aug 2023 07:25:13 +0000 (15:25 +0800)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 07:25:13 +0000 (07:25 +0000)
commita428591f6b86d4ece21292712a9a5491266303eb
tree1e54cd5c04c0aa1929baad915becf308917d070c
parente4b2bdfbc0a28dcb4272de923b547a19131abd22
Refactor toast module (#26677)

1. Do not use "async"
2. Call `hideToast` instead of `removeElement` for manual closing
web_src/js/features/common-global.js
web_src/js/modules/toast.js
web_src/js/modules/toast.test.js