Skip to content

Commit

Permalink
comment out back-button
Browse files Browse the repository at this point in the history
  • Loading branch information
chetbae committed Jul 7, 2023
1 parent 1b911c4 commit 5eb2206
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion deployment/server/css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}

.nav-path-section {
text-decoration: solid underline #589ed5 2px;
/* text-decoration: solid underline #589ed5 2px; */
cursor: pointer;
}

Expand Down
2 changes: 1 addition & 1 deletion deployment/server/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div id="fs-search-container" class="fs-search-container"></div>
</div>
<div id="fs-middle-zone" class="fs-middle-zone">
<button id="fs-back-btn" class="fs-back-btn">Back↵</button>
<!-- <button id="fs-back-btn" class="fs-back-btn">Back↵</button> -->
<div id="fs-results-title" class="fs-results-results"></div>
</div>
<div id="fs-content-container" class="fs-content-container"></div>
Expand Down
24 changes: 12 additions & 12 deletions src/Dashboard/DocumentSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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)));
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -360,15 +360,15 @@ export async function updateDocumentSelector(newPath?: IFolder[]): Promise<void>
// 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));
}
Expand Down

0 comments on commit 5eb2206

Please sign in to comment.