Skip to content

Commit

Permalink
Merge branch 'v24.02'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Mar 29, 2024
2 parents 3c13f36 + e57228a commit 0fba73a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-client",
"version": "24.02.1",
"version": "24.02.2",
"private": true,
"scripts": {
"dev": "vite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ export default {
return { url, id: uri.slice(1) };
},
processCaptchaConfig({ enabled, sitekey }, uri) {
processCaptchaConfig({ enabled, sitekey, showFlag }, uri) {
if (!enabled) return undefined;
const verifyUrl = new URL(path.join(CHAT_URL, uri, 'captcha'), SCRIPT_URL);
return { sitekey, verifyUrl };
return { sitekey, verifyUrl, showFlag };
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
required
@input="setWebchatMetadata({ path: 'metadata.captcha.threshold', value: +$event })"
/>
<wt-switcher
:disabled="disableCaptchaFields"
:label="$t('objects.routing.chatGateways.webchat.recaptcha.showFlag')"
:value="itemInstance.metadata.captcha.showFlag"
@change="setWebchatMetadata({ path: 'metadata.captcha.showFlag', value: +$event })"
/>
</div>
</section>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const webChatGateway = (_btnCodeDirty = false) => ({
sitekey: '',
secret: '',
threshold: 0.5,
showFlag: false,
},
chat: {
enabled: true,
Expand Down

0 comments on commit 0fba73a

Please sign in to comment.