Skip to content

Commit 31988f6

Browse files
authored
feat: Add config parameter name to quick add dialogs in Config page (#2970)
1 parent f699b46 commit 31988f6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/dashboard/Data/Config/AddArrayEntryDialog.react.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export default class AddArrayEntryDialog extends React.Component {
8585
}
8686

8787
render() {
88+
const param = this.props.param;
8889
const confirmDisabled =
8990
this.state.value === '' ||
9091
(this.state.showMismatchRow && !this.state.mismatchConfirmed);
@@ -93,7 +94,8 @@ export default class AddArrayEntryDialog extends React.Component {
9394
<Modal
9495
type={Modal.Types.INFO}
9596
icon="plus-solid"
96-
title="Add entry"
97+
title={'Add entry'}
98+
subtitle={param}
9799
confirmText="Add Unique"
98100
cancelText="Cancel"
99101
onCancel={this.props.onCancel}

src/dashboard/Data/Config/Config.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class Config extends TableView {
124124
this.addArrayEntry(this.state.addEntryParam, value)
125125
}
126126
lastType={this.state.addEntryLastType}
127+
param={this.state.addEntryParam}
127128
/>
128129
);
129130
}
@@ -575,7 +576,7 @@ class Config extends TableView {
575576
);
576577
}
577578

578-
this.showNote('Entry added');
579+
this.showNote(`Entry added to ${param}`);
579580
} catch (e) {
580581
this.showNote(`Failed to add entry: ${e.message}`, true);
581582
} finally {

0 commit comments

Comments
 (0)