diff --git a/js/admin/src/components/EditCustomCssModal.js b/js/admin/src/components/EditCustomCssModal.js index c15d188bb..5b9a144ed 100644 --- a/js/admin/src/components/EditCustomCssModal.js +++ b/js/admin/src/components/EditCustomCssModal.js @@ -1,12 +1,6 @@ -import Modal from 'flarum/components/Modal'; -import Button from 'flarum/components/Button'; -import saveSettings from 'flarum/utils/saveSettings'; - -export default class EditCustomCssModal extends Modal { - init() { - this.customLess = m.prop(app.data.settings.custom_less || ''); - } +import SettingsModal from 'flarum/components/SettingsModal'; +export default class EditCustomCssModal extends SettingsModal { className() { return 'EditCustomCssModal Modal--large'; } @@ -15,36 +9,16 @@ export default class EditCustomCssModal extends Modal { return app.translator.trans('core.admin.edit_css.title'); } - content() { - return ( -
-

{app.translator.trans('core.admin.edit_css.customize_text', {a: })}

- -
-
-