mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05: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:
parent
8c8af3b4ac
commit
c0e3c8bcfe
4 changed files with 25 additions and 0 deletions
|
@ -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": {
|
||||
|
|
|
@ -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'},
|
||||
|
|
|
@ -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'},
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue