Skip to content

Commit

Permalink
Show confirmation when deleting via keybind (#4387)
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored Dec 21, 2023
1 parent d0d0d1e commit 23b4d4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Movies/MovieDetails/Movie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const MoviePage: React.FC<IProps> = ({ movie }) => {
useEffect(() => {
Mousetrap.bind("e", () => toggleEditing());
Mousetrap.bind("d d", () => {
onDelete();
setIsDeleteAlertOpen(true);
});
Mousetrap.bind(",", () => setCollapsed(!collapsed));

Expand Down
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Studios/StudioDetails/Studio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
useEffect(() => {
Mousetrap.bind("e", () => toggleEditing());
Mousetrap.bind("d d", () => {
onDelete();
setIsDeleteAlertOpen(true);
});
Mousetrap.bind(",", () => setCollapsed(!collapsed));

Expand Down
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Tags/TagDetails/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const TagPage: React.FC<IProps> = ({ tag, tabKey }) => {
useEffect(() => {
Mousetrap.bind("e", () => toggleEditing());
Mousetrap.bind("d d", () => {
onDelete();
setIsDeleteAlertOpen(true);
});
Mousetrap.bind(",", () => setCollapsed(!collapsed));

Expand Down

0 comments on commit 23b4d4f

Please sign in to comment.