@dcrackel/hematournamentui 1.0.192 → 1.0.193

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.
@@ -36205,21 +36205,26 @@ const LH = /* @__PURE__ */ ae(oH, [["render", aH]]), AH = {
36205
36205
  data() {
36206
36206
  return {
36207
36207
  backgroundImage: ip,
36208
- selectedBoard: "Neither",
36208
+ selectedBoard: "",
36209
36209
  // Default selection can be set here if needed
36210
36210
  selectedClub: { text: "", link: "" },
36211
36211
  selectedRing: { text: "", link: "" }
36212
36212
  };
36213
36213
  },
36214
+ computed: {
36215
+ isValid() {
36216
+ return this.selectedBoard && this.selectedClub.text && this.selectedRing.text;
36217
+ }
36218
+ },
36214
36219
  methods: {
36215
36220
  selectBoard(n) {
36216
36221
  this.selectedBoard = n;
36217
36222
  },
36218
36223
  selectClub(n) {
36219
- console.log(n), this.selectedClub = n;
36224
+ this.selectedClub = n, this.$emit("update:club", n);
36220
36225
  },
36221
36226
  selectRing(n) {
36222
- console.log(n), this.selectedRing = n;
36227
+ this.selectedRing = n;
36223
36228
  },
36224
36229
  submit() {
36225
36230
  const n = {
@@ -36315,8 +36320,9 @@ function CH(n, e, t, r, i, o) {
36315
36320
  type: "whiteSecondary",
36316
36321
  "hover-color": "highlightPrimary",
36317
36322
  class: "mt-4",
36318
- onClick: o.submit
36319
- }, null, 8, ["onClick"])
36323
+ onClick: o.submit,
36324
+ disabled: !o.isValid
36325
+ }, null, 8, ["onClick", "disabled"])
36320
36326
  ])
36321
36327
  ]);
36322
36328
  }