mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
45 lines
798 B
TypeScript
45 lines
798 B
TypeScript
import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';
|
|
|
|
import {
|
|
itemRLC,
|
|
listRLC,
|
|
siteRLC,
|
|
untilListSelected,
|
|
untilSiteSelected,
|
|
} from '../common.descriptions';
|
|
|
|
const properties: INodeProperties[] = [
|
|
{
|
|
...siteRLC,
|
|
description: 'Select the site to retrieve lists from',
|
|
},
|
|
{
|
|
...listRLC,
|
|
description: 'Select the list you want to delete an item in',
|
|
displayOptions: {
|
|
hide: {
|
|
...untilSiteSelected,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
...itemRLC,
|
|
description: 'Select the item you want to delete',
|
|
displayOptions: {
|
|
hide: {
|
|
...untilSiteSelected,
|
|
...untilListSelected,
|
|
},
|
|
},
|
|
},
|
|
];
|
|
|
|
const displayOptions = {
|
|
show: {
|
|
resource: ['item'],
|
|
operation: ['delete'],
|
|
},
|
|
};
|
|
|
|
export const description = updateDisplayOptions(displayOptions, properties);
|