From 5eb22065c5c4347b35e5731a3783bfd3fb55e136 Mon Sep 17 00:00:00 2001
From: Max Zhang <48145854+chetbae@users.noreply.github.com>
Date: Fri, 7 Jul 2023 11:19:47 -0400
Subject: [PATCH] comment out back-button
---
deployment/server/css/dashboard.css | 2 +-
deployment/server/dashboard.html | 2 +-
src/Dashboard/DocumentSelector.ts | 24 ++++++++++++------------
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/deployment/server/css/dashboard.css b/deployment/server/css/dashboard.css
index 94068b7b..e2d10565 100644
--- a/deployment/server/css/dashboard.css
+++ b/deployment/server/css/dashboard.css
@@ -126,7 +126,7 @@
}
.nav-path-section {
- text-decoration: solid underline #589ed5 2px;
+ /* text-decoration: solid underline #589ed5 2px; */
cursor: pointer;
}
diff --git a/deployment/server/dashboard.html b/deployment/server/dashboard.html
index 82076d85..e55ef1f5 100644
--- a/deployment/server/dashboard.html
+++ b/deployment/server/dashboard.html
@@ -56,7 +56,7 @@
diff --git a/src/Dashboard/DocumentSelector.ts b/src/Dashboard/DocumentSelector.ts
index 5abf1dfa..ca0bbdf9 100644
--- a/src/Dashboard/DocumentSelector.ts
+++ b/src/Dashboard/DocumentSelector.ts
@@ -10,7 +10,7 @@ const backgroundArea: HTMLDivElement = document.querySelector('#main-section-con
const openButton: HTMLButtonElement = document.querySelector('#open-doc');
const deleteButton: HTMLButtonElement = document.querySelector('#remove-doc');
-const navBackButton: HTMLButtonElement = document.querySelector('#fs-back-btn');
+// const navBackButton: HTMLButtonElement = document.querySelector('#fs-back-btn');
const navPathContainer: HTMLDivElement = document.querySelector('#nav-path-container');
const uploadDocumentsButton = document.querySelector('#upload-new-doc-button');
@@ -28,7 +28,7 @@ let orderedSelection: boolean[];
let metaKeyIsPressed = false;
let shiftKeyIsPressed = false;
-navBackButton!.addEventListener('click', handleNavigateBack);
+// navBackButton!.addEventListener('click', handleNavigateBack);
openButton!.addEventListener('click', handleOpenDocuments);
deleteButton!.addEventListener('click', handleDeleteDocuments);
uploadDocumentsButton!.addEventListener('click', () => InitUploadArea(currentPath.at(-1)));
@@ -326,7 +326,7 @@ function handleCreateFolder() {
// abort if parent folder is immutable
const isImmutable = currentPath.at(-1).metadata['immutable'];
if (isImmutable) {
- const stringPath = currentPath.map(folder => folder.name).join('/');
+ const stringPath = currentPath.map(folder => folder.name).join('>');
window.alert(`Cannot add folder. ${stringPath} is immutable.`);
return;
}
@@ -360,15 +360,15 @@ export async function updateDocumentSelector(newPath?: IFolder[]): Promise
// update path display
updateNavPath(currentPath);
- // update back button if at root
- if (newPath.length === 1) {
- navBackButton.classList.remove('active');
- navBackButton.disabled = true;
- }
- else {
- navBackButton.classList.add('active');
- navBackButton.disabled = false;
- }
+ // // update back button if at root
+ // if (newPath.length === 1) {
+ // navBackButton.classList.remove('active');
+ // navBackButton.disabled = true;
+ // }
+ // else {
+ // navBackButton.classList.add('active');
+ // navBackButton.disabled = false;
+ // }
fsm.setFileSystem(currentPath.at(0));
}