1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 07:52:43 +00:00

Issue #1066 : The "Update group" button indicates that a background update is in progress

This commit is contained in:
Massedil 2024-11-23 16:10:27 +01:00 committed by setop
parent f67bd900f7
commit 15850cc72c

View file

@ -165,9 +165,12 @@
/>
<div class="flex flex-wrap gap-2 my-2">
<o-button native-type="submit" variant="primary">{{
t("Update group")
}}</o-button>
<o-button
:loading="loadingUpdateGroup"
native-type="submit"
variant="primary"
>{{ t("Update group") }}</o-button
>
<o-button @click="confirmDeleteGroup" variant="danger">{{
t("Delete group")
}}</o-button>
@ -243,7 +246,12 @@ const showCopiedTooltip = ref(false);
const editableGroup = ref<IGroup>();
const { onDone, onError, mutate: updateGroup } = useUpdateGroup();
const {
onDone,
onError,
mutate: updateGroup,
loading: loadingUpdateGroup,
} = useUpdateGroup();
onDone(() => {
notifier?.success(t("Group settings saved"));