mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
29 lines
676 B
JavaScript
29 lines
676 B
JavaScript
import SettingsModal from './SettingsModal';
|
|
|
|
export default class EditCustomCssModal extends SettingsModal {
|
|
className() {
|
|
return 'EditCustomCssModal Modal--large';
|
|
}
|
|
|
|
title() {
|
|
return app.translator.trans('core.admin.edit_css.title');
|
|
}
|
|
|
|
form() {
|
|
return [
|
|
<p>
|
|
{app.translator.trans('core.admin.edit_css.customize_text', {
|
|
a: <a href="https://github.com/flarum/core/tree/master/less" target="_blank" />,
|
|
})}
|
|
</p>,
|
|
<div className="Form-group">
|
|
<textarea className="FormControl" rows="30" bidi={this.setting('custom_less')} />
|
|
</div>,
|
|
];
|
|
}
|
|
|
|
onsaved() {
|
|
window.location.reload();
|
|
}
|
|
}
|