@phoenix-cg/v-filters 0.2.0-beta.4 → 0.2.0-beta.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phoenix-cg/v-filters",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -221,7 +221,7 @@ export default {
221
221
  this.$set(this.filters, field._name, value)
222
222
  })
223
223
  this.setUrlParams(isUpdate)
224
- !isUpdate && this.doAction()
224
+ !isUpdate && this.doAction(true)
225
225
  },
226
226
  resetFilters () {
227
227
  this.editedFields = []
@@ -232,8 +232,13 @@ export default {
232
232
  this.editedFields.push(name)
233
233
  }
234
234
  },
235
- doAction () {
236
- this.immediate ? this.showResult() : this.requestCount()
235
+ doAction (both = false) {
236
+ if (both) {
237
+ this.requestCount()
238
+ this.showResult()
239
+ } else {
240
+ this.immediate ? this.showResult() : this.requestCount()
241
+ }
237
242
  },
238
243
  requestCount () {
239
244
  this.$emit('request-count', this.flatFilters)