mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
⚡ Minor improvements to Mattermost-Node
This commit is contained in:
parent
0f7b95a703
commit
0db2023027
|
@ -98,9 +98,9 @@ export class Mattermost implements INodeType {
|
|||
description: 'Soft-deletes a channel',
|
||||
},
|
||||
{
|
||||
name: 'Member',
|
||||
value: 'member',
|
||||
description: 'Get a page of members for a channel.',
|
||||
name: 'Members',
|
||||
value: 'members',
|
||||
description: 'Returns the members of a channel.',
|
||||
},
|
||||
{
|
||||
name: 'Restore',
|
||||
|
@ -268,7 +268,7 @@ export class Mattermost implements INodeType {
|
|||
},
|
||||
|
||||
// ----------------------------------
|
||||
// channel:member
|
||||
// channel:members
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Team ID',
|
||||
|
@ -283,7 +283,7 @@ export class Mattermost implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'member'
|
||||
'members',
|
||||
],
|
||||
resource: [
|
||||
'channel',
|
||||
|
@ -308,7 +308,7 @@ export class Mattermost implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'member'
|
||||
'members',
|
||||
],
|
||||
resource: [
|
||||
'channel',
|
||||
|
@ -323,12 +323,12 @@ export class Mattermost implements INodeType {
|
|||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'members',
|
||||
],
|
||||
resource: [
|
||||
'channel',
|
||||
],
|
||||
operation: [
|
||||
'member',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: true,
|
||||
|
@ -340,12 +340,12 @@ export class Mattermost implements INodeType {
|
|||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'members',
|
||||
],
|
||||
resource: [
|
||||
'channel',
|
||||
],
|
||||
operation: [
|
||||
'member',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
|
@ -1284,9 +1284,9 @@ export class Mattermost implements INodeType {
|
|||
const channelId = this.getNodeParameter('channelId', i) as string;
|
||||
endpoint = `channels/${channelId}`;
|
||||
|
||||
} else if (operation === 'member') {
|
||||
} else if (operation === 'members') {
|
||||
// ----------------------------------
|
||||
// channel:member
|
||||
// channel:members
|
||||
// ----------------------------------
|
||||
|
||||
requestMethod = 'GET';
|
||||
|
|
Loading…
Reference in a new issue