Skip to content

Commit

Permalink
BUGFIX: Only confirm once when deleting tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Feb 22, 2024
1 parent c304b45 commit 3bfdb55
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ const DeleteButton: React.FC = () => {
tag: selectedTag,
});
if (!canDeleteTag) return;
// TODO: Implement `obtainApprovalToDeleteCollection` for deleting
const confirm = window.confirm(
translate('action.deleteTag.confirm', `Do you really want to delete the tag "${selectedTag.label}"?`, [
selectedTag.label,
])
);
if (!confirm) return;
deleteTag(selectedTag.id)
.then(() => {
Notify.ok(translate('action.deleteTag.success', 'The tag has been deleted'));
Expand Down

0 comments on commit 3bfdb55

Please sign in to comment.