Skip to content

Commit

Permalink
fix: correct naming for loggers (#149)
Browse files Browse the repository at this point in the history
* fix: correct naming for loggers

* fix: convert to lower case when saving for string
  • Loading branch information
ydcjeff committed Jun 2, 2021
1 parent 04023f5 commit a802644
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion src/components/FormSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ export default {
const { label, options, required, saveKey } = toRefs(props)
const selected = ref('')
const saveSelected = () => saveConfig(saveKey.value, selected.value)
const saveSelected = () => {
if (typeof selected.value === 'string') {
selected.value = selected.value.toLowerCase()
}
saveConfig(saveKey.value, selected.value)
}
const selectId = computed(() => saveKey.value + '-select')
const isRequired = computed(() => (required.value ? '*' : ''))
return {
Expand Down
14 changes: 7 additions & 7 deletions src/metadata/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@
"type": "array",
"description": "Select experiment tracking system",
"options": [
"clearml",
"mlflow",
"neptune",
"polyaxon",
"tensorboard",
"visdom",
"wandb"
"ClearML",
"MLflow",
"Neptune",
"Polyaxon",
"TensorBoard",
"Visdom",
"WandB"
]
}
}
Expand Down

0 comments on commit a802644

Please sign in to comment.