mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-01-02 21:35:16 +00:00
Issue #1066 Add a loading state on <o-button> in the create group page
This commit is contained in:
parent
539c0f2216
commit
b96c476eaa
1 changed files with 8 additions and 2 deletions
|
@ -199,7 +199,13 @@
|
|||
</o-checkbox>
|
||||
</fieldset>
|
||||
|
||||
<o-button variant="primary" native-type="submit" class="mt-3">
|
||||
<o-button
|
||||
variant="primary"
|
||||
:disabled="loading"
|
||||
:loading="loading"
|
||||
native-type="submit"
|
||||
class="mt-3"
|
||||
>
|
||||
{{ t("Create my group") }}
|
||||
</o-button>
|
||||
</form>
|
||||
|
@ -370,7 +376,7 @@ const preferredUsernameErrors = computed(() => {
|
|||
return [message, type];
|
||||
});
|
||||
|
||||
const { onDone, onError, mutate } = useCreateGroup();
|
||||
const { onDone, onError, mutate, loading } = useCreateGroup();
|
||||
|
||||
onDone(() => {
|
||||
notifier?.success(
|
||||
|
|
Loading…
Reference in a new issue