[O] Clarify comments
This commit is contained in:
@@ -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));
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user