[O] Clarify comments

This commit is contained in:
Hykilpikonna
2019-08-21 14:01:25 +08:00
parent 19dfbd04b9
commit cea3c2724f
+2 -2
View File
@@ -20,13 +20,13 @@ export default class Login extends Vue
// Call custom event
this.$emit('login:click', this.username, this.password);
// Fetch request TODO: Add username and password when the server is ready.
// Fetch request TODO: Add username and password when the https server is ready.
fetch(`${Constants.API_URL}/veracross/courses`).then(res =>
{
// Get response body text
res.text().then(text =>
{
// Call custom text event
// Call custom event with courses info
this.$emit('login:courses', JSON.parse(text));
})
})