Options alphabetical sort

This commit is contained in:
Rupenieks 2020-05-19 17:40:17 +02:00
parent 17b6872bc0
commit 9f22a64304
2 changed files with 48 additions and 47 deletions

View file

@ -89,7 +89,6 @@ export const streamFields = [
description: `JSON format parameters for stream creation.`,
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
@ -243,20 +242,6 @@ export const streamFields = [
},
},
options: [
{
displayName: 'Include Public',
name: 'includePublic',
type: 'boolean',
default: true,
description: 'Include all public streams.',
},
{
displayName: 'Include Subscribed',
name: 'includeSubscribed',
type: 'boolean',
default: true,
description: 'Include all streams that the user is subscribed to.',
},
{
displayName: 'Include All Active',
name: 'includeAllActive',
@ -278,6 +263,20 @@ export const streamFields = [
default: true,
description: 'If the user is a bot, include all streams that the bots owner is subscribed to.',
},
{
displayName: 'Include Public',
name: 'includePublic',
type: 'boolean',
default: true,
description: 'Include all public streams.',
},
{
displayName: 'Include Subscribed',
name: 'includeSubscribed',
type: 'boolean',
default: true,
description: 'Include all streams that the user is subscribed to.',
},
]
},
/* -------------------------------------------------------------------------- */
@ -392,20 +391,6 @@ export const streamFields = [
},
},
options: [
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'The new description for the stream.',
},
{
displayName: 'New Name',
name: 'newName',
type: 'string',
default: '',
description: 'The new name for the stream.',
},
{
displayName: 'Announcement Only',
name: 'isAnnouncementOnly',
@ -413,6 +398,14 @@ export const streamFields = [
default: false,
description: 'Whether the stream is limited to announcements.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'The new description for the stream.',
placeholder: 'Place of discussion'
},
{
displayName: 'Is Private',
name: 'isPrivate',
@ -427,6 +420,14 @@ export const streamFields = [
default: false,
description: 'Whether the streams message history should be available to newly subscribed members, or users can only access messages they actually received while subscribed to the stream.',
},
{
displayName: 'New Name',
name: 'newName',
type: 'string',
default: '',
description: 'The new name for the stream.',
placeholder: 'Italy'
},
{
displayName: 'Stream Post Policy',
name: 'streamPostPolicy',

View file

@ -66,24 +66,6 @@ export const userFields = [
default: '',
description: 'The email address of the new user.',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'create',
],
},
},
default: '',
description: 'The password of the new user.',
},
{
displayName: 'Full Name',
name: 'fullName',
@ -102,6 +84,24 @@ export const userFields = [
default: '',
description: 'The full name of the new user.',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'create',
],
},
},
default: '',
description: 'The password of the new user.',
},
{
displayName: 'Short Name',
name: 'shortName',