Skip to content

Commit 9efc0ee

Browse files
committed
fix: mode selection was not rendered on shopware 6.7
1 parent 3d0d6f7 commit 9efc0ee

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "frosh/altcha-captcha",
33
"description": "Self-hosted Altcha Captcha plugin for Shopware 6. Adds secure, user-friendly bot protection without relying on third-party services.",
44
"type": "shopware-platform-plugin",
5-
"version": "1.6.1",
5+
"version": "1.6.2",
66
"authors": [
77
{
88
"name": "FriendsOfShopware",

src/Resources/app/administration/src/core/modules/sw-settings-basic-information/component/sw-settings-captcha-select-v2/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,15 @@ export default Shopware.Component.wrapComponentConfig({
44
template,
55

66
compatConfig: Shopware.compatConfig,
7+
8+
computed: {
9+
captchaModeOptions() {
10+
return [
11+
{ value: 'off', label: 'off' },
12+
{ value: 'onsubmit', label: 'onsubmit' },
13+
{ value: 'onfocus', label: 'onfocus' },
14+
{ value: 'onload', label: 'onload' },
15+
];
16+
}
17+
},
718
});

src/Resources/app/administration/src/core/modules/sw-settings-basic-information/component/sw-settings-captcha-select-v2/sw-settings-captcha-select-v2.html.twig

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,11 @@
3030
:label="$tc('sw-settings-basic-information.captcha.label.altchaCaptchaSecretKey')"
3131
/>
3232

33-
<sw-select-field
34-
v-model:value="currentValue.altchaCaptcha.config.autoMode"
33+
<mt-select
34+
v-model="currentValue.altchaCaptcha.config.autoMode"
3535
:label="$tc('sw-settings-basic-information.captcha.label.altchaCaptchaAutoMode')"
36-
>
37-
<option value="off">off</option>
38-
<option value="onsubmit">onsubmit</option>
39-
<option value="onfocus">onfocus</option>
40-
<option value="onload">onload</option>
41-
</sw-select-field>
36+
:options="captchaModeOptions"
37+
/>
4238

4339
<sw-checkbox-field
4440
v-model:value="currentValue.altchaCaptcha.config.whitelistCustomers"

0 commit comments

Comments
 (0)