-
Notifications
You must be signed in to change notification settings - Fork 0
Finished tasks 38, 37, 36 #41
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
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.
great work! just resolve some comments before u merge but ill approve it first!
@@ -22,11 +22,13 @@ function Dashboard() { | |||
let proposal_lst = response.data; | |||
/* Initialize false <checked> attributes for each proposal; used for checkbox tracking | |||
while in deleting mode */ | |||
console.log("proposals fetched " + proposal_lst) |
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.
delete
proposal_lst.forEach(proposal => { | ||
proposal_lst.checked = false; | ||
}) | ||
setProposals(proposal_lst); | ||
setFilteredProposalsList(proposal_lst); | ||
firstProposal(proposal_lst); |
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.
maybe rename func to "setPreviewToFirstProposal" bc its not clear what "firstProposal" does
@@ -11,17 +11,24 @@ function ConditionalUserNameRender(isAdmin, userName) { | |||
} | |||
} | |||
|
|||
function ConditionalUserDisplay(userID) { | |||
console.log(userID); |
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.
delete
if (proposal.checked) { | ||
updatedPropsIdsToDelete.pop(proposal.id); | ||
} | ||
else { | ||
updatedPropsIdsToDelete.push(proposal.id); | ||
} |
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.
just wanted to comment that this is beautiful :)
Motivation
Note task 35 is not included in this.
Issue #36 #37 #38
Summary of Changes
Feel free to use sentences or a bulleted list.
Testing
Manual Testing
Screenshot/Gif of results