@avakhula/ui 0.0.61 → 0.0.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakhula/ui",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -92,19 +92,18 @@ export default {
92
92
  },
93
93
  methods: {
94
94
  clickHandler() {
95
- this.$globalEvents.$emit(`sorting:update:${this.tableName}`, this);
96
- this.updateTypeSorting();
97
-
98
95
  if (!this.currentTypeSort) {
99
96
  this.currentTypeSort = this.sortingTypes.TYPE_ASC;
100
- return;
101
97
  } else if (this.currentTypeSort === this.sortingTypes.TYPE_ASC) {
102
98
  this.currentTypeSort = this.sortingTypes.TYPE_DESC;
103
- return;
99
+ } else {
100
+ this.currentTypeSort = null;
104
101
  }
105
- this.currentTypeSort = null;
102
+
103
+ this.updateTypeSorting();
106
104
  },
107
105
  updateTypeSorting() {
106
+ this.$globalEvents.$emit(`sorting:update:${this.tableName}`, this);
108
107
  this.$emit("update-sorting", this.currentTypeSort);
109
108
  },
110
109
  },