Skip to content

Commit

Permalink
Change: Allow to show errors in the TagsDialog
Browse files Browse the repository at this point in the history
Allow to show errors in the TagsDialog. This may be necessary for
example if a new tag can't be created.
  • Loading branch information
bjoernricks committed Jun 17, 2024
1 parent 5c7b19c commit 0ed5685
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/web/entities/tagsdialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@ const Notification = styled(Layout)`
const TagsDialog = ({
comment = '',
entitiesCount,
error,
tagId: id,
name,
tags,
title = _('Add Tag'),
value = '',
onClose,
onErrorClose,
onNewTagClick,
onTagChanged,
onSave,
}) => (
<SaveDialog
buttonTitle="Add Tag"
error={error}
title={title}
width="650px"
values={{
Expand All @@ -53,6 +56,7 @@ const TagsDialog = ({
value,
}}
onClose={onClose}
onErrorClose={onErrorClose}
onSave={onSave}
>
{() => (
Expand Down Expand Up @@ -97,13 +101,15 @@ const TagsDialog = ({
TagsDialog.propTypes = {
comment: PropTypes.string,
entitiesCount: PropTypes.number.isRequired,
error: PropTypes.string,
filter: PropTypes.filter,
name: PropTypes.string,
tagId: PropTypes.id,
tags: PropTypes.array,
title: PropTypes.string,
value: PropTypes.string,
onClose: PropTypes.func.isRequired,
onErrorClose: PropTypes.func,
onNewTagClick: PropTypes.func.isRequired,
onSave: PropTypes.func.isRequired,
onTagChanged: PropTypes.func.isRequired,
Expand Down

0 comments on commit 0ed5685

Please sign in to comment.