@webitel/ui-sdk 0.9.62 → 0.9.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -37,10 +37,6 @@ describe('Abstract Enum Filter', () => {
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
it('renders a component', () => {
|
|
40
|
-
console.info(store.getters);
|
|
41
|
-
console.info(Object.keys(store.getters)[0]);
|
|
42
|
-
console.info(store.getters);
|
|
43
|
-
console.info(store.getters[Object.keys(store.getters)[0]]);
|
|
44
40
|
const wrapper = shallowMount(AbstractEnumFilter, mountOptions);
|
|
45
41
|
expect(wrapper.exists()).toBe(true);
|
|
46
42
|
});
|
|
@@ -32,9 +32,9 @@ export default {
|
|
|
32
32
|
if (!this.$store) throw new Error('Vuex is required for default setValueToQuery() baseFilterMixin method');
|
|
33
33
|
return this.$store.dispatch(`${this.namespace}/SET_VALUE_TO_QUERY`, payload);
|
|
34
34
|
},
|
|
35
|
-
getValueFromQuery(
|
|
35
|
+
getValueFromQuery({ filterQuery }) {
|
|
36
36
|
if (!this.$store) throw new Error('Vuex is required for default getValueFromQuery() baseFilterMixin method');
|
|
37
|
-
return this.$
|
|
37
|
+
return this.$route.query[filterQuery];
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
};
|