@pocketprep/ui-kit 3.4.48 → 3.4.49

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.
@@ -238,7 +238,7 @@
238
238
  </template>
239
239
 
240
240
  <script lang="ts">
241
- import { Component, Emit, Prop, Vue } from 'vue-facing-decorator'
241
+ import { Component, Emit, Prop, Vue, Watch } from 'vue-facing-decorator'
242
242
  import Icon from '../Icons/Icon.vue'
243
243
  import OverflowTooltip from '../Tooltips/OverflowTooltip.vue'
244
244
  import { dark } from '../../directives'
@@ -334,6 +334,14 @@ export default class Table extends Vue {
334
334
  this.emitSort()
335
335
  }
336
336
 
337
+ @Watch('defaultSort')
338
+ defaultSortChanged () {
339
+ if (this.defaultSort) {
340
+ this.currentSort = JSON.parse(JSON.stringify(this.defaultSort))
341
+ this.emitSort()
342
+ }
343
+ }
344
+
337
345
  @Emit('sort')
338
346
  emitSort (): ITableSortSettings {
339
347
  return this.currentSort
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.48",
3
+ "version": "3.4.49",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {