Some improvements to Asana project additions

This commit is contained in:
Jan Oberhauser
2022-02-26 11:10:40 +01:00
parent 0a92e616b6
commit d7a26da699
2 changed files with 51 additions and 14 deletions

View File

@@ -86,6 +86,36 @@ export async function getWorkspaces(this: ILoadOptionsFunctions): Promise<INodeP
return returnData;
}
export function getColorOptions(): INodePropertyOptions[] {
return [
'dark-blue',
'dark-brown',
'dark-green',
'dark-orange',
'dark-pink',
'dark-purple',
'dark-red',
'dark-teal',
'dark-warm-gray',
'light-blue',
'light-green',
'light-orange',
'light-pink',
'light-purple',
'light-red',
'light-teal',
'light-warm-gray',
'light-yellow',
'none',
].map(value => {
return {
name: value,
value: value,
};
});
}
export function getTaskFields() {
return [
'*',