CSR-756 Cleanup
This commit is contained in:
parent
4969b21fd3
commit
7450840a36
2 changed files with 1 additions and 10 deletions
|
|
@ -223,8 +223,6 @@ function navigateToUrl(url, optionalQuery = {}) {
|
||||||
for (const queryKey in optionalQuery) {
|
for (const queryKey in optionalQuery) {
|
||||||
externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]);
|
externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]);
|
||||||
}
|
}
|
||||||
|
|
||||||
externalUrl.searchParams.append("experiments", "ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true");
|
|
||||||
|
|
||||||
window.location.assign(externalUrl);
|
window.location.assign(externalUrl);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useField } from "vee-validate";
|
import { useField } from "vee-validate";
|
||||||
import { toRef, computed } from "vue";
|
import { toRef } from "vue";
|
||||||
import { queryStrings } from "@/constants/query-strings";
|
import { queryStrings } from "@/constants/query-strings";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -87,7 +87,6 @@ export default {
|
||||||
colLength: String,
|
colLength: String,
|
||||||
validationRules: String,
|
validationRules: String,
|
||||||
selectedValues: [Array, String],
|
selectedValues: [Array, String],
|
||||||
// modelValue: Object,
|
|
||||||
hasError: Boolean,
|
hasError: Boolean,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -98,7 +97,6 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
if (Array.isArray(this.validateValue)) {
|
if (Array.isArray(this.validateValue)) {
|
||||||
this.checkValue = this.isValueSelectedByArray(this.selectedValues);
|
this.checkValue = this.isValueSelectedByArray(this.selectedValues);
|
||||||
|
|
||||||
const isSelectedByValidator = this.isValueSelectedByArray(this.validateValue);
|
const isSelectedByValidator = this.isValueSelectedByArray(this.validateValue);
|
||||||
|
|
||||||
if (this.checkValue != isSelectedByValidator) {
|
if (this.checkValue != isSelectedByValidator) {
|
||||||
|
|
@ -164,7 +162,6 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
// Changing this will impact pre-selection data loads on vehicle-parts.
|
// Changing this will impact pre-selection data loads on vehicle-parts.
|
||||||
// If changed, please regression test that vehicle-parts data still loads correctly with previous selections.
|
// If changed, please regression test that vehicle-parts data still loads correctly with previous selections.
|
||||||
// model
|
|
||||||
selectedValues(newVal) {
|
selectedValues(newVal) {
|
||||||
if (typeof newVal === "string") {
|
if (typeof newVal === "string") {
|
||||||
this.checkValue = newVal == this.value;
|
this.checkValue = newVal == this.value;
|
||||||
|
|
@ -192,8 +189,6 @@ export default {
|
||||||
const {
|
const {
|
||||||
handleChange,
|
handleChange,
|
||||||
errors,
|
errors,
|
||||||
checked,
|
|
||||||
meta,
|
|
||||||
value
|
value
|
||||||
} = useField(toRef(props, "groupName"), toRef(props, "validationRules"), fieldOptions);
|
} = useField(toRef(props, "groupName"), toRef(props, "validationRules"), fieldOptions);
|
||||||
|
|
||||||
|
|
@ -203,8 +198,6 @@ export default {
|
||||||
return {
|
return {
|
||||||
handleChange,
|
handleChange,
|
||||||
errors,
|
errors,
|
||||||
checked,
|
|
||||||
meta,
|
|
||||||
validateValue,
|
validateValue,
|
||||||
fieldOptions, // only need to expose this for unit test purposes
|
fieldOptions, // only need to expose this for unit test purposes
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue