File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 157
157
dense
158
158
class =' col-10'
159
159
placeholder =' Use , as separator'
160
- @input =' $1t.settings.quickTag.genres[i].subgenres = ($event||"").split("," )'
160
+ @input =' onSubgenreInput ($event, i )'
161
161
:value =' ($1t.settings.quickTag.genres[i].subgenres||[]).join(",")'
162
162
></q-input >
163
163
</div >
@@ -382,6 +382,14 @@ export default {
382
382
this .$1t .settings .quickTag .genres .push ({genre: this .newGenre , keybind: null });
383
383
this .newGenre = null ;
384
384
},
385
+ // On subgenres changed
386
+ onSubgenreInput (e , i ) {
387
+ if (! e) {
388
+ this .$1t .settings .quickTag .genres [i].subgenres = [];
389
+ return ;
390
+ }
391
+ this .$1t .settings .quickTag .genres [i].subgenres = e .split (" ," );
392
+ },
385
393
// Mood keybind
386
394
setMoodKeybind (i , key ) {
387
395
this .$1t .settings .quickTag .moods [i].keybind = key;
You can’t perform that action at this time.
0 commit comments