confirm_dialog: Correct documentation regarding loading_spinner.

This commit is contained in:
Ganesh Pawar 2021-06-16 19:43:39 +05:30 committed by Tim Abbott
parent 10dcc4ac98
commit a0e5a82d23
1 changed files with 4 additions and 3 deletions

View File

@ -30,9 +30,10 @@ import * as overlays from "./overlays";
only ever have one confirm dialog active at any
time.
6) If a modal wants a loading spinner, it should pass loading_spinner: true
and manage the spinner via calling the functions hide_confirm_dialog_spinner
and show_confirm_dialog_spinner via its callback hooks.
6) If a modal wants a loading spinner, it should pass loading_spinner: true.
This will show a loading spinner when the yes button is clicked.
The caller is responsible for calling hide_confirm_dialog_spinner()
to hide the spinner in both success and error handlers.
*/
export function hide_confirm_dialog_spinner() {