@avakhula/ui 0.0.62 → 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.62",
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
95
  if (!this.currentTypeSort) {
97
96
  this.currentTypeSort = this.sortingTypes.TYPE_ASC;
98
- return;
99
97
  } else if (this.currentTypeSort === this.sortingTypes.TYPE_ASC) {
100
98
  this.currentTypeSort = this.sortingTypes.TYPE_DESC;
101
- return;
99
+ } else {
100
+ this.currentTypeSort = null;
102
101
  }
103
- this.currentTypeSort = null;
104
102
 
105
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
  },