File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments