From 960eaf52e3c7082b9f1de9aae35132f0a94c644e Mon Sep 17 00:00:00 2001 From: Alec Ritson Date: Wed, 14 Aug 2019 13:59:18 +0100 Subject: [PATCH] Squashed commit of the following: commit d6bd0fcf900c825156d875ca2d055506b7b7776a Author: Alec Ritson Date: Tue Aug 13 10:51:30 2019 +0100 0.2.48 commit 5c47e924012d2c8a289be1b7bcc6a6a7ae0ebbbf Author: Alec Ritson Date: Tue Aug 13 10:50:28 2019 +0100 Compile commit 079a017d8ac7df35ce369faf2b242914655d187c Author: Alec Ritson Date: Tue Aug 13 10:31:23 2019 +0100 Slugify the url commit 81415f4ea3caa08f322a72f67fe83c36f6779fbc Author: Alec Ritson Date: Wed Aug 7 14:34:33 2019 +0100 v0.2.47 commit 3a30ecf6d7f3b13d22f94d4fed8faa8bc9ba9660 Author: Alec Ritson Date: Wed Aug 7 14:33:12 2019 +0100 Compile commit edf0beda95f978c5db5278b37f9dd25e20151578 Author: Alec Ritson Date: Wed Aug 7 14:29:23 2019 +0100 Clean up and add array check commit 7b6161a8728a58ddc368a4b41f4b65f1fdf46ddc Author: Alec Ritson Date: Tue Aug 6 15:57:01 2019 +0100 0.2.46 commit dd5db95426fd96a6f95424305f78eb7c992bd2ef Author: Alec Ritson Date: Tue Aug 6 15:56:55 2019 +0100 Compile commit 6ab5b2eb4466519c8589953a39bf869a901c24f4 Author: Alec Ritson Date: Tue Aug 6 15:53:32 2019 +0100 Fix incorrect dispatch reference commit 519465c8acd9e4a4b3777c2b9e68e4014bb9c86a Author: Alec Ritson Date: Tue Aug 6 15:48:54 2019 +0100 v0.2.45 commit 098643e62cf7a61d10970f7a5e858077cab25c34 Author: Alec Ritson Date: Tue Aug 6 15:48:02 2019 +0100 Load up config for fields commit 84e27849a05656225818e0ee6826f866752cc1c4 Author: Alec Ritson Date: Tue Aug 6 15:47:54 2019 +0100 Fix id check commit 46bfaa3695bbc40fdeca057ff26551225b52b156 Author: Alec Ritson Date: Tue Aug 6 15:46:50 2019 +0100 Fix console error --- .../catalogue-manager/categories/Edit.vue | 2 +- .../products/ProductDuplicate.vue | 9 ++++-- .../customers/CustomerEdit.vue | 32 +++++++++++++++++-- .../customers/Impersonate.vue | 2 +- 4 files changed, 37 insertions(+), 8 deletions(-) diff --git a/resources/assets/js/components/catalogue-manager/categories/Edit.vue b/resources/assets/js/components/catalogue-manager/categories/Edit.vue index 906324e1..f09dfab6 100644 --- a/resources/assets/js/components/catalogue-manager/categories/Edit.vue +++ b/resources/assets/js/components/catalogue-manager/categories/Edit.vue @@ -119,7 +119,7 @@ - + diff --git a/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue b/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue index ab8182ba..df509dc4 100644 --- a/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue +++ b/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue @@ -27,9 +27,13 @@ }, routes() { return this.product.routes ? this.product.routes.data : null; - } + }, }, methods: { + sanitize: _.debounce(function (index) { + const slug = this.slugs[index].new; + this.slugs[index].new = _.kebabCase(slug); + }, 1000), fetch(showFetch) { this.skus = []; this.slugs = []; @@ -107,11 +111,10 @@ -