1. Do not use "async" 2. Call `hideToast` instead of `removeElement` for manual closing
Fixes https://github.com/go-gitea/gitea/issues/24353 In some case like async success/error, it is useful to show toasts in UI.