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:
parent
f97ebfcbc0
commit
210bbc800a
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user