zahmis 5 лет назад
Родитель
Сommit
7f6d120283
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      src/server/service/bolt.js

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

@@ -159,6 +159,19 @@ class BoltService {
         blocks: [
         blocks: [
           this.generateMarkdownSectionBlock('検索結果 10 件'),
           this.generateMarkdownSectionBlock('検索結果 10 件'),
           this.generateMarkdownSectionBlock(`${resultPaths.join('\n')}`),
           this.generateMarkdownSectionBlock(`${resultPaths.join('\n')}`),
+          {
+            type: 'actions',
+            elements: [
+              {
+                type: 'button',
+                text: {
+                  type: 'plain_text',
+                  text: '検索結果をこのチャンネルに共有する',
+                },
+                style: 'primary',
+              },
+            ],
+          },
         ],
         ],
       });
       });
     }
     }