mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 11:07:58 +08:00
Fix settings not automatically showing when an extension is enabled
This commit is contained in:
parent
f97ebfcbc0
commit
210bbc800a
@ -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();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user