Procházet zdrojové kódy

added a button to share the results

kaori před 5 roky
rodič
revize
0a7e5a594b
1 změnil soubory, kde provedl 15 přidání a 0 odebrání
  1. 15 0
      src/server/service/bolt.js

+ 15 - 0
src/server/service/bolt.js

@@ -116,6 +116,21 @@ class BoltService {
                 text: `${resultPaths.join('\n')}`,
               },
             },
+            {
+              type: 'actions',
+              elements: [
+                {
+                  type: 'button',
+                  text: {
+                    type: 'plain_text',
+                    emoji: true,
+                    text: '検索結果をこのチャンネルに共有する',
+                  },
+                  style: 'primary',
+                  value: 'click_me_123',
+                },
+              ],
+            },
           ],
         });
       }