Skip to content

Commit

Permalink
fixed issue with BulkEditor
Browse files Browse the repository at this point in the history
- closes #296
  • Loading branch information
foxriver76 committed Jan 9, 2024
1 parent 3e56137 commit 4c20e09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ E.g., if it was used in a menu and the menu is red, the circle would be red.
### **WORK IN PROGRESS**
-->
## Changelog
### **WORK IN PROGRESS**
* (foxriver76) fixed issue with BulkEditor

### 2.9.14 (2024-01-09)
* (foxriver76) fixed last change y-offset for some widgets
* (foxriver76) fixed issue where JquiState did not respect data type
Expand Down
7 changes: 4 additions & 3 deletions src/src/Vis/Widgets/JQui/BulkEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ interface BulkEditorState {
editDialog?: {
index?: number;
value: string | number;
add: unknown;
/** True if add dialog, false if edit dialog */
add: boolean;
} | null;
textDialogFocused: unknown[];
states: null;
Expand Down Expand Up @@ -561,7 +562,7 @@ class BulkEditor extends React.Component<BulkEditorProps, BulkEditorState> {
startIcon={this.state.editDialog.add ? <Add /> : <Check />}
onClick={() => this.onEnter()}
>
{this.state.editDialog.add ? I18n.t('Add') : I18n.t('Delete')}
{this.state.editDialog.add ? I18n.t('Add') : I18n.t('Apply')}
</Button>
<Button
variant="contained"
Expand Down Expand Up @@ -696,7 +697,7 @@ class BulkEditor extends React.Component<BulkEditorProps, BulkEditorState> {
{this.state.values[i]}
<IconButton
size="small"
onClick={() => this.setState({ editDialog: { add: true, index: i, value: this.state.values[i] } })}
onClick={() => this.setState({ editDialog: { add: false, index: i, value: this.state.values[i] } })}
>
<Edit />
</IconButton>
Expand Down

0 comments on commit 4c20e09

Please sign in to comment.