Refresh admin settings on submit (#2456)

This commit is contained in:
SleeplessOne1917 2024-05-14 09:48:59 -04:00 committed by GitHub
parent d705f3685f
commit b793697f68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -141,7 +141,7 @@
"sortpack"
]
},
"packageManager": "pnpm@9.1.0+sha512.67f5879916a9293e5cf059c23853d571beaf4f753c707f40cb22bed5fb1578c6aad3b6c4107ccb3ba0b35be003eb621a16471ac836c87beb53f9d54bb4612724",
"packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195",
"engineStrict": true,
"importSort": {
".js, .jsx, .ts, .tsx": {

View file

@ -421,6 +421,9 @@ export class AdminSettings extends Component<
return s;
});
toast(I18NextService.i18n.t("site_saved"));
// You need to reload the page, to properly update the siteRes everywhere
setTimeout(() => location.reload(), 500);
}
this.setState({ loading: false });