Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEB-2330] fix: you don't have permission toast on on bulk delete #5599

Merged
merged 3 commits into from
Sep 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor code improvement
sharma01ketan committed Sep 12, 2024
commit dbf013eb00b13a34a7b6b823314cbb4019d082d2
8 changes: 3 additions & 5 deletions web/core/components/command-palette/command-palette.tsx
Original file line number Diff line number Diff line change
@@ -256,11 +256,9 @@ export const CommandPalette: FC = observer(() => {
toggleShortcutModal(true);
}

if (deleteKey) {
if(canPerformProjectAdminActions){
performProjectBulkDeleteActions()
shortcutsList.project.delete.action();
}
if (deleteKey && canPerformProjectAdminActions) {
performProjectBulkDeleteActions()
shortcutsList.project.delete.action();
} else if (cmdClicked) {
if (keyPressed === "c" && ((platform === "MacOS" && ctrlKey) || altKey)) {
e.preventDefault();