diff --git a/client/src/components/Projects/ColumnHeaderPopups/StatusPopup.js b/client/src/components/Projects/ColumnHeaderPopups/StatusPopup.js
index fc8f7668..fffea250 100644
--- a/client/src/components/Projects/ColumnHeaderPopups/StatusPopup.js
+++ b/client/src/components/Projects/ColumnHeaderPopups/StatusPopup.js
@@ -20,12 +20,16 @@ const StatusPopup = ({
header.id !== orderBy ? null : order
);
+ const [typeSetting, setTypeSetting] = useState(criteria.type);
+ const [showDeleted, setShowDeleted] = useState(criteria.status === "all");
+
// TODO More state variables for status filtering go here
const setDefault = () => {
setCriteria({
...criteria,
- [header.id]: ""
+ status: showDeleted ? "all" : "active",
+ type: "all"
});
setCheckedProjectIds([]);
setSelectAllChecked(false);
@@ -33,6 +37,11 @@ const StatusPopup = ({
const applyChanges = () => {
// Set Criteria for status
+ setCriteria({
+ ...criteria,
+ status: showDeleted ? "all" : "active",
+ type: typeSetting
+ });
if (newOrder) {
setSort(header.id, newOrder);
}
@@ -72,8 +81,40 @@ const StatusPopup = ({
/>
-
(Under Construction)
-
+
+ {/* If there is a dateSnapshotted (i.e., project is snapshot), property value is 1 */}
+ setTypeSetting("draft")}
+ />
+ setTypeSetting("snapshot")}
+ />
+ setTypeSetting("all")}
+ />
+
+
+
+
+
-
(Under Construction)
+
+ {/* If there is a dateSnapshotted (i.e., project is snapshot), property value is 1 */}
+ setVisibilitySetting("visible")}
+ />
+ setVisibilitySetting("hidden")}
+ />
+ setVisibilitySetting("all")}
+ />
+
diff --git a/client/src/components/Projects/ProjectTableRow.js b/client/src/components/Projects/ProjectTableRow.js
index 7d6773b0..ee1924eb 100644
--- a/client/src/components/Projects/ProjectTableRow.js
+++ b/client/src/components/Projects/ProjectTableRow.js
@@ -78,21 +78,6 @@ const ProjectTableRow = ({
return value !== "undefined" ? value : "";
};
- // Last Modified Date column should display the Last Modified date, unless the project is
- // deleted, in which case it will show the deleted date followed by "-Deleted" in red.
- const dateModifiedDisplay = () => {
- if (project.dateTrashed) {
- return (
-
- {formatDate(project.dateTrashed)}
- -Deleted
-
- );
- }
-
- return {formatDate(project.dateModified)};
- };
-
const dateSubmittedDisplay = () => {
if (project.dateSubmitted) {
return {formatDate(project.dateSubmitted)};
@@ -101,7 +86,10 @@ const ProjectTableRow = ({
};
return (
-