1
0
Fork 0
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:
Massedil 2024-11-13 18:24:22 +01:00 committed by setop
parent 539c0f2216
commit b96c476eaa

View file

@ -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(