Skip to content

Commit

Permalink
Allow free text input if data is missing for select boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 19, 2023
1 parent 4293e9e commit 7e583e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/datatypes/SelectBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ export default {
return (this.type === 'file-paths');
},
taggable() {
return (this.type === 'year');
let freeInputIfEmpty = ['band-name', 'collection-id', 'job-id', 'input-format', 'output-format'];
return (this.type === 'year' || (this.selectOptions.length === 0 && freeInputIfEmpty.includes(this.type)));
},
preselect() {
if (this.multiple) {
Expand Down

0 comments on commit 7e583e4

Please sign in to comment.