1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 09:17:03 +00:00

Update admin config settings

This commit is contained in:
Daniel Supernault 2019-06-20 20:22:20 -06:00
parent d64616af8a
commit 4348680907
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -48,7 +48,10 @@
} }
axios.post('/i/admin/settings/config/restore', { axios.post('/i/admin/settings/config/restore', {
}).then(res => { }).then(res => {
swal('Success', 'Configuration successfully restored!', 'success');
setTimeout(function() {
window.location.href = window.location.href; window.location.href = window.location.href;
}, 3000);
}); });
}) })
@ -62,7 +65,10 @@
axios.post('/i/admin/settings/config', { axios.post('/i/admin/settings/config', {
res: editor.getValue() res: editor.getValue()
}).then(res => { }).then(res => {
swal('Success', 'Configuration successfully updated!', 'success');
setTimeout(function() {
window.location.href = window.location.href; window.location.href = window.location.href;
}, 3000);
}); });
}) })
</script> </script>