1
0
mirror of https://github.com/flarum/core.git synced 2025-02-25 03:33:42 +01:00

Fix settings not automatically showing when an extension is enabled

This commit is contained in:
Toby Zerner 2016-03-31 17:11:23 +10:30
parent f97ebfcbc0
commit 210bbc800a

View File

@ -105,7 +105,7 @@ export default class ExtensionsPage extends Page {
method: 'PATCH', method: 'PATCH',
data: {enabled: !enabled} data: {enabled: !enabled}
}).then(() => { }).then(() => {
if (enabled) localStorage.setItem('enabledExtension', id); if (!enabled) localStorage.setItem('enabledExtension', id);
window.location.reload(); window.location.reload();
}); });