mirror of
https://github.com/flarum/core.git
synced 2025-07-12 04:16:24 +02:00
Fix settings not automatically showing when an extension is enabled
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user