1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 17:51:24 +02: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 e3073832d5
commit b89bfc5194

View File

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