Lines 86-94
import { ref, inject } from "vue"
Link Here
|
86 |
|
86 |
|
87 |
export default { |
87 |
export default { |
88 |
setup() { |
88 |
setup() { |
89 |
const { setMessage } = inject("mainStore") |
89 |
const { setMessage, setWarning } = inject("mainStore") |
90 |
return { |
90 |
return { |
91 |
setMessage, |
91 |
setMessage, |
|
|
92 |
setWarning, |
92 |
} |
93 |
} |
93 |
}, |
94 |
}, |
94 |
data() { |
95 |
data() { |
Lines 171-181
export default {
Link Here
|
171 |
)}</p>` |
172 |
)}</p>` |
172 |
this.setMessage(message, true) |
173 |
this.setMessage(message, true) |
173 |
} |
174 |
} |
174 |
if (success.invalid_filetype) { |
175 |
if (success.warnings.invalid_filetype) { |
175 |
message += `<p>${this.$__( |
176 |
message += `<p>${this.$__( |
176 |
"The file must be in .tsv or .csv format, please convert your file and try again." |
177 |
"The file must be in .tsv or .csv format, please convert your file and try again." |
177 |
)}</p>` |
178 |
)}</p>` |
178 |
setWarning(message) |
179 |
this.setWarning(message) |
179 |
} |
180 |
} |
180 |
}, |
181 |
}, |
181 |
error => {} |
182 |
error => {} |
182 |
- |
|
|