Skip to content

Commit

Permalink
Include samples folder in immutable check
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Nov 1, 2023
1 parent 583ee95 commit e49da8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dashboard/Dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function updateActionBarButtons() {
}

// update upload doc/add folder to active if parent folder isn't immutable
const isImmutable = state.getParentFolder().metadata['immutable'];
const isImmutable = state.getParentFolder().metadata['immutable'] || (state.getSelectedEntries()[0] && state.getSelectedEntries()[0].metadata['immutable']);
if (isImmutable) {
uploadDocumentsButton.classList.remove('active');
newFolderButton.classList.remove('active');
Expand Down

0 comments on commit e49da8c

Please sign in to comment.