-
Notifications
You must be signed in to change notification settings - Fork 1
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
Do 19 - list should be displayed based on object array #15
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
let currentView; | ||
let projectList1 = { |
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.
Why are there 2 lists projectList and projectList1?
projectListArray = Object.keys(projectList1); | ||
let projects = ""; | ||
for (let i = 0; i < projectListArray.length; i++) { | ||
projects +="<li class='list-unstyled px-3'>" + |
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.
Variable projects should better be named projectsHtml.
@@ -84,6 +137,25 @@ function showProject(listId) { | |||
} | |||
|
|||
|
|||
function showProjectList() { |
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.
Projects list that need to be displayed should be passed in the function argument.
@@ -100,7 +100,7 @@ | |||
<!-- Navigation Bar --> | |||
<div class="row"> | |||
<div class="col-3 collapse collapse-horizontal show" id="side-bar"> | |||
<nav> |
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.
Why it has been changed from nav to div?
@@ -25,12 +25,65 @@ let upcoming = [{ | |||
title: "Lorem3", | |||
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." | |||
}] | |||
|
|||
let project1 = [{ | |||
id: 10, |
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.
Doest project1 contain tasks? What this list depicts?
No description provided.