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