mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: rename Importer.isValid to Importer.canSubmit
We are not really checking the validity of the form.
This commit is contained in:
parent
1f13c6ef00
commit
b692cb0cd1
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ export default class Importer extends Utils.WithTemplate {
|
|||
)
|
||||
this.qs('[name=layer-name]').toggleAttribute('hidden', Boolean(this.layerId))
|
||||
this.qs('#clear').toggleAttribute('hidden', !this.layerId)
|
||||
this.qs('[name=submit').toggleAttribute('disabled', !this.isValid())
|
||||
this.qs('[name=submit').toggleAttribute('disabled', !this.canSubmit())
|
||||
}
|
||||
|
||||
onFileChange(e) {
|
||||
|
@ -258,7 +258,7 @@ export default class Importer extends Utils.WithTemplate {
|
|||
this.qs('[type=file]').showPicker()
|
||||
}
|
||||
|
||||
isValid() {
|
||||
canSubmit() {
|
||||
if (!this.format) return false
|
||||
const hasFiles = Boolean(this.files.length)
|
||||
const hasRaw = Boolean(this.raw)
|
||||
|
|
Loading…
Reference in a new issue