1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 06:41:21 +02:00

Fix mail settings select component never being used (#3120)

This commit is contained in:
Clark Winkelmann
2021-10-25 07:44:46 +02:00
committed by GitHub
parent 16aeed9689
commit cc9da3324a

View File

@@ -79,7 +79,7 @@ export default class MailPage extends AdminPage {
return [ return [
this.buildSettingComponent({ this.buildSettingComponent({
type: typeof this.setting(field)() === 'string' ? 'text' : 'select', type: typeof fieldInfo === 'string' ? 'text' : 'select',
label: app.translator.trans(`core.admin.email.${field}_label`), label: app.translator.trans(`core.admin.email.${field}_label`),
setting: field, setting: field,
options: fieldInfo, options: fieldInfo,