2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Added new settings for portal button customization

no issue

- Adds new portal settings - `portal_button_style`, `portal_button_icon` and `portal_button_signup_text`
- New settings allows customization of portal button
- Updates tests to include new settings
This commit is contained in:
Rish 2020-07-07 13:32:47 +05:30 committed by Rishabh Garg
parent 8c8af3b4ac
commit c0e3c8bcfe
4 changed files with 25 additions and 0 deletions

View file

@ -290,6 +290,22 @@
"portal_plans": {
"defaultValue": "[\"free\", \"monthly\", \"yearly\"]",
"type": "array"
},
"portal_button_style": {
"defaultValue": "icon-and-text",
"validations": {
"isEmpty": false,
"isIn": [["text-only", "icon-and-text", "icon-only"]]
},
"type": "string"
},
"portal_button_icon": {
"defaultValue": null,
"type": "string"
},
"portal_button_signup_text": {
"defaultValue": "Subscribe",
"type": "string"
}
},
"email": {

View file

@ -49,6 +49,9 @@ const defaultSettingsKeyTypes = [
{key: 'portal_name', type: 'portal'},
{key: 'portal_button', type: 'portal'},
{key: 'portal_plans', type: 'portal'},
{key: 'portal_button_style', type: 'portal'},
{key: 'portal_button_icon', type: 'portal'},
{key: 'portal_button_signup_text', type: 'portal'},
{key: 'mailgun_api_key', type: 'bulk_email'},
{key: 'mailgun_domain', type: 'bulk_email'},
{key: 'mailgun_base_url', type: 'bulk_email'},

View file

@ -46,6 +46,9 @@ const defaultSettingsKeyTypes = [
{key: 'portal_name', type: 'portal'},
{key: 'portal_button', type: 'portal'},
{key: 'portal_plans', type: 'portal'},
{key: 'portal_button_style', type: 'portal'},
{key: 'portal_button_icon', type: 'portal'},
{key: 'portal_button_signup_text', type: 'portal'},
{key: 'mailgun_api_key', type: 'bulk_email'},
{key: 'mailgun_domain', type: 'bulk_email'},
{key: 'mailgun_base_url', type: 'bulk_email'},

View file

@ -49,6 +49,9 @@ const defaultSettingsKeys = [
'portal_name',
'portal_button',
'portal_plans',
'portal_button_style',
'portal_button_icon',
'portal_button_signup_text',
'mailgun_api_key',
'mailgun_domain',
'mailgun_base_url',