Skip to content

Commit e2658bf

Browse files
committed
WIP for missing locale keys
1 parent 5776f23 commit e2658bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/src/pages/Organizations.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ export const Organizations = ({pendingApproval, tab}) => {
9999
okButton: I18n.t("forms.submit")
100100
});
101101
} else {
102+
setLoading(true);
102103
updateOrganizationStatus(organization.id, status).then(() => {
104+
setLoading(false);
103105
setConfirmation({});
104106
setFlash(I18n.t("organizations.flash.updated", {
105107
name: organization.name,
@@ -124,7 +126,9 @@ export const Organizations = ({pendingApproval, tab}) => {
124126
okButton: I18n.t("forms.delete")
125127
});
126128
} else {
129+
setLoading(true);
127130
deleteOrganizationById(organization.id).then(() => {
131+
setLoading(false);
128132
setConfirmation({});
129133
setFlash(I18n.t("organizations.flash.deleted", {
130134
name: organization.name
@@ -185,6 +189,7 @@ export const Organizations = ({pendingApproval, tab}) => {
185189
setLoading(true);
186190
setOpenOrganizationId(null);
187191
updateOrganizationName(openOrganizationId, newOrganizationName).then(() => {
192+
setLoading(false);
188193
setFlash(I18n.t("organizations.flash.nameChange", {name: newOrganizationName}));
189194
setRefresh(new Date());
190195
})

0 commit comments

Comments
 (0)