Skip to content

Commit

Permalink
Merge branch 'master' into power-levels
Browse files Browse the repository at this point in the history
  • Loading branch information
csternagel authored Mar 16, 2024
2 parents cc67b2c + 92ce695 commit 0aea04e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="card" :id="id">
<div class="card-header">
<button @click="previous" :disabled="noPrevious()"><icon id="arrow-left" :button="true"></icon></button>
<v-select :options="options" v-model="selected" placeholder="Start typing..."></v-select>
<v-select ref="inputSelected" :options="options" v-model="selected" placeholder="Start typing..."></v-select>
<button @click="next" :disabled="noNext()"><icon id="arrow-right" :button="true"></icon></button>
<v-select class="power-level" :options="powerLevels()" v-model="powerLevel"></v-select>
<button class="remove-card" @click="$emit('dismiss', id)"><icon id="cross" :button="true"></icon></button>
Expand Down Expand Up @@ -171,5 +171,11 @@
return this.selected.master && this.showLevel(3);
},
},
mounted() {
if (!this.selected) {
this.$refs.inputSelected.$refs.search.focus();
}
},
};
</script>

0 comments on commit 0aea04e

Please sign in to comment.