Minor improvements to Mattermost-Node

This commit is contained in:
Jan Oberhauser
2020-05-06 10:29:09 +02:00
parent 0f7b95a703
commit 0db2023027

View File

@@ -98,9 +98,9 @@ export class Mattermost implements INodeType {
description: 'Soft-deletes a channel', description: 'Soft-deletes a channel',
}, },
{ {
name: 'Member', name: 'Members',
value: 'member', value: 'members',
description: 'Get a page of members for a channel.', description: 'Returns the members of a channel.',
}, },
{ {
name: 'Restore', name: 'Restore',
@@ -268,7 +268,7 @@ export class Mattermost implements INodeType {
}, },
// ---------------------------------- // ----------------------------------
// channel:member // channel:members
// ---------------------------------- // ----------------------------------
{ {
displayName: 'Team ID', displayName: 'Team ID',
@@ -283,7 +283,7 @@ export class Mattermost implements INodeType {
displayOptions: { displayOptions: {
show: { show: {
operation: [ operation: [
'member' 'members',
], ],
resource: [ resource: [
'channel', 'channel',
@@ -308,7 +308,7 @@ export class Mattermost implements INodeType {
displayOptions: { displayOptions: {
show: { show: {
operation: [ operation: [
'member' 'members',
], ],
resource: [ resource: [
'channel', 'channel',
@@ -323,12 +323,12 @@ export class Mattermost implements INodeType {
type: 'boolean', type: 'boolean',
displayOptions: { displayOptions: {
show: { show: {
operation: [
'members',
],
resource: [ resource: [
'channel', 'channel',
], ],
operation: [
'member',
],
}, },
}, },
default: true, default: true,
@@ -340,12 +340,12 @@ export class Mattermost implements INodeType {
type: 'number', type: 'number',
displayOptions: { displayOptions: {
show: { show: {
operation: [
'members',
],
resource: [ resource: [
'channel', 'channel',
], ],
operation: [
'member',
],
returnAll: [ returnAll: [
false, false,
], ],
@@ -1284,9 +1284,9 @@ export class Mattermost implements INodeType {
const channelId = this.getNodeParameter('channelId', i) as string; const channelId = this.getNodeParameter('channelId', i) as string;
endpoint = `channels/${channelId}`; endpoint = `channels/${channelId}`;
} else if (operation === 'member') { } else if (operation === 'members') {
// ---------------------------------- // ----------------------------------
// channel:member // channel:members
// ---------------------------------- // ----------------------------------
requestMethod = 'GET'; requestMethod = 'GET';