Skip to content

Commit db1d81f

Browse files
committed
feature: add allowRefreshSuggestedQueries to shopify global_component
1 parent 2114631 commit db1d81f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

clients/trieve-shopify-extension/extensions/global-search/blocks/global_component.liquid

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
brandColor: getValue("{{ block.settings.brand_color }}", ""),
5151
brandLogoImgSrcUrl: getValue("{{ block.settings.brand_logo_img_src_url }}", undefined),
5252
chatPlaceholder: getValue("{{ block.settings.chat_placeholder }}", "Ask anything..."),
53+
allowRefreshSuggestedQueries: toBool(getValue("{{ block.settings.show_sugestions_refresh }}", true)),
5354
suggestedQueries: toBool(getValue("{{ block.settings.suggested_queries }}", true)),
5455
followupQuestions: toBool(getValue("{{ block.settings.suggested_queries }}", true)),
5556
numberOfSuggestions: Number(getValue("{{ block.settings.number_of_suggestions }}", 3)),
@@ -151,6 +152,12 @@
151152
"label": "Open Links in New Tab",
152153
"default": true
153154
},
155+
{
156+
"type": "checkbox",
157+
"id": "show_sugestions_refresh",
158+
"label": "Show Refresh Suggested Queries Button",
159+
"default": true
160+
},
154161
{
155162
"id": "default_ai_questions",
156163
"type": "textarea",

0 commit comments

Comments
 (0)