Formatting

This commit is contained in:
richard-dds 2019-08-16 13:49:50 -04:00
parent db73a12e95
commit 9b7186c94f
2 changed files with 9 additions and 5 deletions

View File

@ -110,7 +110,7 @@ export default {
clearErrors: function() { clearErrors: function() {
this.uploadError = false this.uploadError = false
this.sizeError = false this.sizeError = false
} },
}, },
computed: { computed: {
@ -126,7 +126,11 @@ export default {
return this.hasInitialData && !this.changed return this.hasInitialData && !this.changed
}, },
showErrors: function() { showErrors: function() {
return (!this.changed && this.initialErrors) || this.uploadError || this.sizeError return (
} (!this.changed && this.initialErrors) ||
this.uploadError ||
this.sizeError
)
},
}, },
} }

View File

@ -32,9 +32,9 @@ class AzureUploader {
options, options,
function(err, result) { function(err, result) {
if (err) { if (err) {
resolve({ok: false}) resolve({ ok: false })
} else { } else {
resolve({ok: true}) resolve({ ok: true })
} }
} }
) )