Merge pull request #6665 from papnoisanjeev/multiple-same-address-save-issue

Checkbox disabled after address save one time #6312
This commit is contained in:
Jitendra Singh 2022-08-29 18:49:55 +05:30 committed by GitHub
commit 8bc8839cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -10,8 +10,8 @@
*/
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You
* Vue.js v2.7.10
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/

View File

@ -1,4 +1,4 @@
{
"/js/shop.js": "/js/shop.js?id=c497b48c2b6bd04edeca",
"/js/shop.js": "/js/shop.js?id=a03df6eadec81eea9b0b",
"/css/shop.css": "/css/shop.css?id=f48c3d268309736e99d9"
}

View File

@ -281,6 +281,12 @@
let self = this;
this.disable_button = true;
this.saveAddressCheckbox = $('input[name="billing[save_as_address]"]');
if (this.saveAddressCheckbox.prop('checked') == true) {
this.saveAddressCheckbox.attr('disabled', 'disabled');
this.saveAddressCheckbox.prop('checked', true);
}
if (this.allAddress.length > 0) {
let address = this.allAddress.forEach(address => {

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*/
/*!
* Vue.js v2.7.3
* Vue.js v2.7.8
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/

View File

@ -3,8 +3,8 @@
"/js/velocity-core.js": "/js/velocity-core.js?id=dcc312fe978be1aff63a33eaf7ad190c",
"/js/velocity.js": "/js/velocity.js?id=5e563e0af3ea88a56b03a4a30fad0a92",
"/js/manifest.js": "/js/manifest.js?id=4113cf6789cdd4f2768f508bc32cad2d",
"/js/components.js": "/js/components.js?id=9cef6b659b9eeda222cf28fdb372abc1",
"/css/velocity.css": "/css/velocity.css?id=d3e3d68ebf1870fc95c045ba29dc2b77",
"/js/components.js": "/js/components.js?id=f1962fbe19365543e54b0e329f86b8ff",
"/css/velocity.css": "/css/velocity.css?id=b052a38bbdda8e29ff1dee8479d69d63",
"/css/velocity-admin.css": "/css/velocity-admin.css?id=b67a82956e53163b5e3ff45a44f9778f",
"/images/Camera.svg": "/images/Camera.svg?id=b2fd2f9e17e1ccee96e29f6c6cec91e8",
"/images/Icon-Arrow-Right.svg": "/images/Icon-Arrow-Right.svg?id=e30f624f1a70197dc9ad9011b240aa8e",

View File

@ -375,6 +375,12 @@
saveAddress: async function () {
this.disable_button = true;
this.saveAddressCheckbox = $('input[name="billing[save_as_address]"]');
if (this.saveAddressCheckbox.prop('checked') == true) {
this.saveAddressCheckbox.attr('disabled', 'disabled');
this.saveAddressCheckbox.prop('checked', true);
}
if (this.allAddress.length > 0) {
let address = this.allAddress.forEach(address => {