Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
samberrry committed May 25, 2022
2 parents 681cd4c + 680a6d5 commit 17657ee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-storefront/prestashop-api",
"version": "1.0.0-rc.3",
"version": "1.0.0",
"private": false,
"sideEffects": false,
"server": "server/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/composables/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-storefront/prestashop",
"version": "1.0.0-rc.3",
"version": "1.0.0",
"private": false,
"sideEffects": false,
"main": "lib/index.cjs.js",
Expand All @@ -16,7 +16,7 @@
"update:update": "ncu -u"
},
"dependencies": {
"@vue-storefront/prestashop-api": "1.0.0-rc.3",
"@vue-storefront/prestashop-api": "1.0.0",
"@vue-storefront/core": "~2.5.4"
},
"devDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions packages/theme/components/MyAccount/CreateAccountForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
class="form__element"
>
<SfInput
v-model="currentPassword"
v-model="newPassword"
type="password"
name="currentPassword"
label="Current Password"
name="newPassword"
label="Password"
required
class="form__element"
/>
Expand Down Expand Up @@ -110,7 +110,7 @@ export default defineComponent({
setup(props, context) {
const emit = context.emit;
const { $router } = context.root;
const currentPassword = ref('');
const newPassword = ref('');
const genderOptions = [
{ value: 1, label: 'male' },
{ value: 2, label: 'female' }
Expand All @@ -128,7 +128,7 @@ export default defineComponent({
const submitForm = (resetValidationFn) => () => {
const onComplete = () => {
form.value = resetForm();
currentPassword.value = '';
newPassword.value = '';
$router.push(context.root.localePath({ name: 'shipping' }));
resetValidationFn();
};
Expand All @@ -142,13 +142,13 @@ export default defineComponent({
title: 'User Account Update'
});
};
if (currentPassword.value) {
form.value.password = currentPassword.value;
if (newPassword.value) {
form.value.password = newPassword.value;
}
emit('submit', { form, onComplete, onError });
};
return {
currentPassword,
newPassword,
form,
submitForm,
genderOptions
Expand Down
4 changes: 2 additions & 2 deletions packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-storefront/prestashop-theme",
"version": "1.0.0-rc.3",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "nuxt build -m",
Expand All @@ -24,7 +24,7 @@
"@vue-storefront/middleware": "~2.5.4",
"@vue-storefront/nuxt": "~2.5.4",
"@vue-storefront/nuxt-theme": "~2.5.4",
"@vue-storefront/prestashop": "1.0.0-rc.3",
"@vue-storefront/prestashop": "1.0.0",
"cookie-universal-nuxt": "^2.1.5",
"core-js": "^3.19.0",
"nuxt": "^2.15.8",
Expand Down

0 comments on commit 17657ee

Please sign in to comment.