We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b097ae9 commit be7537fCopy full SHA for be7537f
1 file changed
components/ClassesFilters.vue
@@ -32,8 +32,10 @@
32
:items="semsters"
33
v-model="selectedSemsters"
34
label="Semsters"
35
+ item-text="text"
36
+ item-value="value"
37
:clearable="true"
- :deletable-chips="true"
38
+ :deletable-chips="false"
39
:disabled="!selectedMajor"
40
@input="$emit('semsters:change', $event)"
41
chips
@@ -64,8 +66,14 @@ export default {
64
66
},
65
67
computed: {
68
semsters() {
69
+ //text and value are off by 1
70
+ //(counting starts from 0 for text)
71
+ //(counting starts from 1 for text)
72
if (this.selectedMajor) {
- let sems = this.selectedMajor.sems
73
+ let sems = this.selectedMajor.sems.map((a) => ({
74
+ text: a + 1,
75
+ value: a,
76
+ }))
77
return sems
78
} else {
79
return []
0 commit comments