From d6a6b0021201e9c13279c62375a75213273e73ae Mon Sep 17 00:00:00 2001 From: Motaz Marouf Date: Thu, 21 Mar 2019 12:27:23 +0200 Subject: [PATCH] Fixes --- dist/js/field.js | 6 ------ resources/js/components/IndexField.vue | 6 ------ 2 files changed, 12 deletions(-) diff --git a/dist/js/field.js b/dist/js/field.js index 00d1100..2d52fb3 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -10856,12 +10856,6 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); methods: { redirect: function redirect(locale) { window.location = this.replaceUrlParam(window.location.href, 'lang', locale); - // console.log(locale); - // window.location = Nova.config.base - // + "/resources/" - // + this.resourceName + "/" - // + this.field.value.id + "/edit" - // + "?lang=" + locale; }, replaceUrlParam: function replaceUrlParam(url, paramName, paramValue) { if (paramValue == null) { diff --git a/resources/js/components/IndexField.vue b/resources/js/components/IndexField.vue index b2a4a02..5c4dd9d 100644 --- a/resources/js/components/IndexField.vue +++ b/resources/js/components/IndexField.vue @@ -14,12 +14,6 @@ methods: { redirect(locale) { window.location = this.replaceUrlParam(window.location.href, 'lang', locale); - // console.log(locale); - // window.location = Nova.config.base - // + "/resources/" - // + this.resourceName + "/" - // + this.field.value.id + "/edit" - // + "?lang=" + locale; }, replaceUrlParam(url, paramName, paramValue)