Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

faizahmed1234
Copy link
Contributor

No description provided.

@faizahmed1234 faizahmed1234 changed the title DO-19 - list should be displayed based on object array Do 19 - list should be displayed based on object array Jan 2, 2023
}

let currentView;
let projectList1 = {
Copy link
Contributor

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'>" +
Copy link
Contributor

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() {
Copy link
Contributor

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>
Copy link
Contributor

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,
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants