Skip to content

Commit c2d31f7

Browse files
committed
new projects will be displayed as inactive
1 parent 67d59bc commit c2d31f7

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

manager_dashboard/manager_dashboard/js/project-management.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ function getProjects(status) {
2727
btn1 = addButton(data.key, data.val().status, "inactive")
2828
btn2 = addButton(data.key, data.val().status, "finished")
2929
row_array.push(btn1.outerHTML + btn2.outerHTML)
30-
} else if (data.val().status == "new") {
31-
btn = addButton(data.key, data.val().status, "active")
32-
row_array.push(btn.outerHTML)
3330
} else if (data.val().status == "finished") {
3431
btn = addButton(data.key, data.val().status, "inactive")
3532
row_array.push(btn.outerHTML)
@@ -109,7 +106,6 @@ function updateTableView() {
109106
.draw();
110107
}
111108

112-
// getProjects("new")
113109
getProjects("active")
114110
getProjects("inactive")
115111
getProjects("finished")
@@ -151,7 +147,6 @@ function changeProjectIsFeatured() {
151147
}
152148

153149

154-
//status_array = ["new", "active", "inactive", "finished"]
155150
status_array = ["active", "inactive", "finished", "archived"]
156151

157152
for (var i = 0; i < status_array.length; i++) {

manager_dashboard/manager_dashboard/manage.html

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -91,26 +91,6 @@ <h3>Please <a href="index.html">log in</a> first.</h3>
9191

9292
<!-- manage existing projects -->
9393
<div class="row justify-content-center" id="project-management" style="display: block">
94-
<!-- <div class="col-md-12">-->
95-
<!-- <div id="new-projects" class="col-md-12 project-data">-->
96-
<!-- <h2>New Projects</h2>-->
97-
<!-- <p>These projects have just been created and no mapping has happened yet.</p>-->
98-
<!-- <table id="projectsTable-new" class="table table-striped table-bordered">-->
99-
<!-- <thead>-->
100-
<!-- <tr class="thead-inverse">-->
101-
<!-- <th>Project ID</th>-->
102-
<!-- <th>Name</th>-->
103-
<!-- <th>Project Type</th>-->
104-
<!-- <th>Progress</th>-->
105-
<!-- <th>Change Status</th>-->
106-
<!-- </tr>-->
107-
<!-- </thead>-->
108-
<!-- <tbody>-->
109-
<!-- &lt;!&ndash; will be added by function &ndash;&gt;-->
110-
<!-- </tbody>-->
111-
<!-- </table>-->
112-
<!-- </div>-->
113-
11494
<div id="active-projects" class="col-md-12 project-data">
11595
<h2>Active Projects</h2>
11696
<p>These projects are currently visible in the MapSwipe app.</p>

0 commit comments

Comments
 (0)