Skip to content

Commit de29d42

Browse files
committed
added a sub block note for api token
1 parent 8767661 commit de29d42

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,9 @@ function SubBlockComponent({
906906
subBlockValues
907907
)}
908908
{renderInput()}
909+
{config.note && (
910+
<p className='mt-[-6px] text-muted-foreground text-xs leading-relaxed'>{config.note}</p>
911+
)}
909912
</div>
910913
)
911914
}

apps/sim/blocks/blocks/monday.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const MondayBlock: BlockConfig<MondayResponse> = {
3535
placeholder: 'Enter your Monday.com API key',
3636
password: true,
3737
required: true,
38+
note: 'The API key can be found by logging into Monday.com, clicking on your profile picture, opening the Developers section. Then, click on Developers in the header menu and select My Access Tokens to get your personal API token.',
3839
},
3940
// CREATE ITEM fields
4041
{

apps/sim/blocks/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export interface SubBlockConfig {
209209
max?: number
210210
columns?: string[]
211211
placeholder?: string
212+
note?: string
212213
password?: boolean
213214
readOnly?: boolean
214215
showCopyButton?: boolean

0 commit comments

Comments
 (0)