Skip to content

Do 19 - list should be displayed based on object array#15

Open
faizahmed1234 wants to merge 3 commits into
Ibexoft:masterfrom
faizahmed1234:DO-19
Open

Do 19 - list should be displayed based on object array#15
faizahmed1234 wants to merge 3 commits into
Ibexoft:masterfrom
faizahmed1234:DO-19

Conversation

@faizahmed1234

Copy link
Copy Markdown
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
Comment thread js/index.js
}

let currentView;
let projectList1 = {

Copy link
Copy Markdown
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?

Comment thread js/index.js
projectListArray = Object.keys(projectList1);
let projects = "";
for (let i = 0; i < projectListArray.length; i++) {
projects +="<li class='list-unstyled px-3'>" +

Copy link
Copy Markdown
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.

Comment thread js/index.js
}


function showProjectList() {

Copy link
Copy Markdown
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.

Comment thread views/view-task.html
<!-- Navigation Bar -->
<div class="row">
<div class="col-3 collapse collapse-horizontal show" id="side-bar">
<nav>

Copy link
Copy Markdown
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?

Comment thread js/index.js
}]

let project1 = [{
id: 10,

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