Show custom CSS to hosted users
This commit is contained in:
parent
33876d8f14
commit
ac9ad12077
|
|
@ -731,13 +731,13 @@ class _ClientPortalState extends State<ClientPortal>
|
||||||
maxLines: 6,
|
maxLines: 6,
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
),
|
),
|
||||||
if (isSelfHosted(context)) ...[
|
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.customCss,
|
label: localization.customCss,
|
||||||
controller: _customCssController,
|
controller: _customCssController,
|
||||||
maxLines: 6,
|
maxLines: 6,
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
),
|
),
|
||||||
|
if (isSelfHosted(context))
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.customJavascript,
|
label: localization.customJavascript,
|
||||||
controller: _customJavaScriptController,
|
controller: _customJavaScriptController,
|
||||||
|
|
@ -745,7 +745,6 @@ class _ClientPortalState extends State<ClientPortal>
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
],
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -609,10 +609,8 @@ class SettingsSearch extends StatelessWidget {
|
||||||
[
|
[
|
||||||
'header',
|
'header',
|
||||||
'footer',
|
'footer',
|
||||||
if (isSelfHosted(context)) ...[
|
|
||||||
'custom_css',
|
'custom_css',
|
||||||
'custom_javascript',
|
if (isSelfHosted(context)) 'custom_javascript',
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
kSettingsEmailSettings: [
|
kSettingsEmailSettings: [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue