File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
framework/core/js/src/admin/components Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,13 @@ export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAt
351
351
app . alerts . show ( { type : 'success' } , app . translator . trans ( 'core.admin.settings.saved_message' ) ) ;
352
352
}
353
353
354
+ /**
355
+ * Called when `saveSettings` completes with errors.
356
+ */
357
+ onsavefailed ( ) : void {
358
+ this . loading = false ;
359
+ }
360
+
354
361
/**
355
362
* Returns a function that fetches the setting from the `app` global.
356
363
*/
@@ -394,6 +401,6 @@ export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAt
394
401
395
402
this . loading = true ;
396
403
397
- return saveSettings ( this . dirty ( ) ) . then ( this . onsaved . bind ( this ) ) ;
404
+ return saveSettings ( this . dirty ( ) ) . then ( this . onsaved . bind ( this ) ) . catch ( this . onsavefailed . bind ( this ) ) ;
398
405
}
399
406
}
You can’t perform that action at this time.
0 commit comments