@golstats/gsc-top-player 1.0.7 → 1.0.8

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.
@@ -599,7 +599,7 @@ export default {
599
599
  .rowwPlayer420Games {
600
600
  align-self: stretch;
601
601
  display: flex;
602
- height: v-bind(height) !important;
602
+ height: 60px !important;
603
603
  flex-direction: row;
604
604
  align-items: center;
605
605
  justify-content: flex-start;
@@ -615,7 +615,7 @@ export default {
615
615
  .rowwPlayer460Games {
616
616
  align-self: stretch;
617
617
  display: flex;
618
- height: v-bind(height) !important;
618
+ height: 60px !important;
619
619
  flex-direction: row;
620
620
  align-items: center;
621
621
  justify-content: flex-start;
@@ -450,7 +450,7 @@ export default {
450
450
  computed: {
451
451
  topData() {
452
452
  // Si hay dummyData, úsala directamente
453
- if (this.dummyData && this.category === 0) {
453
+ if (this.dummyData) {
454
454
  return [this.dummyData]
455
455
  }
456
456
  this.changeStateLoading(true)
@@ -23,7 +23,7 @@
23
23
  :filter-team="teamselect"
24
24
  :num-rows="numRows"
25
25
  :key="updateTables"
26
- :dummy-data="category.id === 0 ? dummyData : null"
26
+ :dummy-data="dummyData"
27
27
  />
28
28
  </div>
29
29
  </template>
@@ -62,11 +62,14 @@ const props = defineProps({
62
62
  type: Number,
63
63
  default: 5,
64
64
  },
65
+ useDummyData: {
66
+ type: Boolean,
67
+ default: true,
68
+ },
65
69
  })
66
70
 
67
- // Si la categoría seleccionada es id=0, usa la info dummy
68
- const dummyData =
69
- props.categoryView.length === 1 && props.categoryView[0].id === 0 ? dummyTopPlayers : null
71
+ // Si useDummyData es true, usa datos dummy, si es false busca datos reales de la categoría
72
+ const dummyData = props.useDummyData ? dummyTopPlayers : null
70
73
  </script>
71
74
 
72
75
  <style scoped>