-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completed #10
base: main
Are you sure you want to change the base?
Completed #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can continue working on the leftover tasks. Good Attempt!
Add in the deployment link and Fill checklist associated with the PR
@@ -1,10 +1,7 @@ | |||
<template> | |||
<aside class="mx-auto flex justify-between mt-24 px-4"> | |||
<label for="add task" class="flex-1"> | |||
<input | |||
type="text" | |||
name="add task" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name attribute cannot have spaces in between
" | ||
placeholder="Enter Task" | ||
/> | ||
" v-model.trim="newTask" placeholder="Enter Task" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch on trimming
if (token === null && path === '/'){ | ||
context.redirect('login/'); | ||
} | ||
else if(token != null && path != '/'){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer using strict equalities
pages/login/index.vue
Outdated
|
||
const validateField = () => { | ||
if (state.username === '' || state.password === '') { | ||
$toast.error('Please fill all the fields correctly.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide feedback as to what the error is ie -> username/password cannot be empty
pages/index.vue
Outdated
}) | ||
.then(() => { | ||
this.$toast.success('Todo deleted successfully!') | ||
this.$router.go() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think of how you can delete the task and prevent reloading the page
No description provided.