feat(Notion Node): Add icon support for page and database page creation (#5468)
This commit is contained in:
committed by
GitHub
parent
a9f08fc5ba
commit
71cba06b7c
@@ -534,6 +534,47 @@ export const databasePageFields: INodeProperties[] = [
|
||||
],
|
||||
},
|
||||
...blocks('databasePage', 'create'),
|
||||
{
|
||||
displayName: 'Options',
|
||||
name: 'options',
|
||||
type: 'collection',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['databasePage'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
placeholder: 'Add Option',
|
||||
options: [
|
||||
{
|
||||
displayName: 'Icon Type',
|
||||
name: 'iconType',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Emoji',
|
||||
value: 'emoji',
|
||||
description: 'Use an Emoji for the icon',
|
||||
},
|
||||
{
|
||||
name: 'File',
|
||||
value: 'file',
|
||||
description: 'Use a file for the icon',
|
||||
},
|
||||
],
|
||||
default: 'emoji',
|
||||
description: 'The icon type for the database page, Either a URL or an Emoji',
|
||||
},
|
||||
{
|
||||
displayName: 'Icon',
|
||||
name: 'icon',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Emoji or File URL to use as the icon',
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* databasePage:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user