Skip to content

Commit

Permalink
DOP-4549 trying selection groups
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 16, 2024
1 parent d810502 commit 768c11b
Showing 1 changed file with 36 additions and 17 deletions.
53 changes: 36 additions & 17 deletions src/services/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,26 +197,45 @@ export class SlackConnector implements ISlackConnector {
},
blocks: [
{
type: 'input',
dispatch_action: true,
block_id: 'block_repo_option',
element: {
type: 'multi_static_select',
action_id: 'repo_option',
placeholder: {
type: 'plain_text',
text: 'Select a repo to deploy',
emoji: true,
},
options: repos,
},
optional: true,
label: {
type: 'section',
text: {
type: 'plain_text',
text: 'Select Repo',
emoji: true,
text: 'repo option groups',
},
accessory: {
type: 'static_select',
option_groups: [
{
label: {
type: 'plain_text',
text: 'group 1',
},
options: repos,
},
],
},
},
// {
// type: 'input',
// dispatch_action: true,
// block_id: 'block_repo_option',
// element: {
// type: 'static_select',
// action_id: 'repo_option',
// placeholder: {
// type: 'plain_text',
// text: 'Select a repo to deploy',
// emoji: true,
// },
// options: repos,
// },
// optional: true,
// label: {
// type: 'plain_text',
// text: 'Select Repo',
// emoji: true,
// },
// },
{
type: 'input',
block_id: 'block_hash_option',
Expand Down

0 comments on commit 768c11b

Please sign in to comment.