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