diff --git a/src/components/NcDialog/NcDialog.vue b/src/components/NcDialog/NcDialog.vue index 971b890c26..327696c0fe 100644 --- a/src/components/NcDialog/NcDialog.vue +++ b/src/components/NcDialog/NcDialog.vue @@ -133,6 +133,8 @@ Sometimes a dialog ends with a request and this request might fail due to server In this case it is often desired to keep the dialog open, this can be done by returning `false` from the button callback, to not block this callback should return a `Promise`. +It is also possible to get the result of the callback from the dialog, as the result is passed as the payload of the `closing` event. + While the promise is awaited the button will have a loading state, this means, as long as no custom `icon`-slot is used, a loading icon will be shown. Please note that the **button will not be disabled or accessibility reasons**, @@ -141,12 +143,14 @@ because disabled elements cannot be focused and so the loading state could not b ```vue