mirror of
https://github.com/flarum/core.git
synced 2025-07-24 02:01:19 +02:00
Extract ModalManagerState from ModalManager (#2162)
This commit is contained in:
committed by
GitHub
parent
4f181c84fc
commit
44376cef61
@@ -16,7 +16,7 @@ export default class ExtensionsPage extends Page {
|
||||
children: app.translator.trans('core.admin.extensions.add_button'),
|
||||
icon: 'fas fa-plus',
|
||||
className: 'Button Button--primary',
|
||||
onclick: () => app.modal.show(new AddExtensionModal()),
|
||||
onclick: () => app.modal.show(AddExtensionModal),
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
@@ -94,7 +94,7 @@ export default class ExtensionsPage extends Page {
|
||||
})
|
||||
.then(() => window.location.reload());
|
||||
|
||||
app.modal.show(new LoadingModal());
|
||||
app.modal.show(LoadingModal);
|
||||
},
|
||||
})
|
||||
);
|
||||
@@ -123,6 +123,6 @@ export default class ExtensionsPage extends Page {
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
app.modal.show(new LoadingModal());
|
||||
app.modal.show(LoadingModal);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user