kaori 5 лет назад
Родитель
Сommit
63ebd2637b
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/server/service/bolt.js

+ 3 - 3
src/server/service/bolt.js

@@ -107,7 +107,7 @@ class BoltService {
 
       switch (firstArg) {
         case 'search':
-          await this.searchResults(command, args);
+          await this.showEphemeralSearchResults(command, args);
           break;
 
         case 'create':
@@ -186,7 +186,7 @@ class BoltService {
     return resultPaths;
   }
 
-  async searchResults(command, args) {
+  async showEphemeralSearchResults(command, args) {
     const resultPaths = await this.getSearchResultPaths(command, args);
 
     try {
@@ -203,7 +203,7 @@ class BoltService {
                 type: 'button',
                 text: {
                   type: 'plain_text',
-                  text: 'Share the results.',
+                  text: 'Share',
                 },
                 style: 'primary',
                 action_id: 'shareSearchResults',