Skip to content

Commit

Permalink
change text to confignamelabel
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahd93 committed Aug 16, 2019
1 parent 146bbce commit 3a12e31
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions gsa/src/web/pages/policies/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,12 +751,12 @@ class PolicyComponent extends React.Component {
{editPolicyFamilyDialogVisible && (
<EditPolicyFamilyDialog
config={policy}
configNameLabel={_('Policy')}
config_name={policyName}
family_name={family_name}
id={id}
nvts={nvts}
selected={selected}
text={_('Policy')}
title={editPolicyFamilyDialogTitle}
onClose={this.handleCloseEditPolicyFamilyDialog}
onEditNvtDetailsClick={this.openEditNvtDetailsDialog}
Expand All @@ -766,12 +766,12 @@ class PolicyComponent extends React.Component {
{editNvtDetailsDialogVisible && (
<EditNvtDetailsDialog
config={policy}
configNameLabel={_('Policy')}
config_name={policyName}
family_name={family_name}
manual_timeout={manual_timeout}
nvt={nvt}
preference_values={preference_values}
text={_('Policy')}
timeout={timeout}
title={editNvtDetailsDialogTitle}
onClose={this.handleCloseEditNvtDetailsDialog}
Expand Down
4 changes: 2 additions & 2 deletions gsa/src/web/pages/scanconfigs/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,12 @@ class ScanConfigComponent extends React.Component {
{editConfigFamilyDialogVisible && (
<EditConfigFamilyDialog
config={config}
configNameLabel={_('Config')}
config_name={config_name}
family_name={family_name}
id={id}
nvts={nvts}
selected={selected}
text={_('Config')}
title={editConfigFamilyDialogTitle}
onClose={this.handleCloseEditConfigFamilyDialog}
onEditNvtDetailsClick={this.openEditNvtDetailsDialog}
Expand All @@ -515,12 +515,12 @@ class ScanConfigComponent extends React.Component {
{editNvtDetailsDialogVisible && (
<EditNvtDetailsDialog
config={config}
configNameLabel={_('Config')}
config_name={config_name}
family_name={family_name}
manual_timeout={manual_timeout}
nvt={nvt}
preference_values={preference_values}
text={_('Config')}
timeout={timeout}
title={editNvtDetailsDialogTitle}
onClose={this.handleCloseEditNvtDetailsDialog}
Expand Down
6 changes: 3 additions & 3 deletions gsa/src/web/pages/scanconfigs/editconfigfamilydialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class EditDialogComponent extends React.Component {
config_name,
family_name,
id,
text,
configNameLabel,
title,
onClose,
onEditNvtDetailsClick,
Expand Down Expand Up @@ -228,7 +228,7 @@ class EditDialogComponent extends React.Component {
<SimpleTable>
<TableBody>
<TableRow>
<TableData>{text}</TableData>
<TableData>{configNameLabel}</TableData>
<TableData>{config_name}</TableData>
</TableRow>
<TableRow>
Expand Down Expand Up @@ -308,12 +308,12 @@ class EditDialogComponent extends React.Component {

EditDialogComponent.propTypes = {
config: PropTypes.model.isRequired,
configNameLabel: PropTypes.string.isRequired,
config_name: PropTypes.string,
family_name: PropTypes.string,
id: PropTypes.string,
nvts: PropTypes.array.isRequired,
selected: PropTypes.object.isRequired,
text: PropTypes.string,
title: PropTypes.string,
onClose: PropTypes.func.isRequired,
onEditNvtDetailsClick: PropTypes.func,
Expand Down
6 changes: 3 additions & 3 deletions gsa/src/web/pages/scanconfigs/editnvtdetailsdialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class EditDialog extends React.Component {
timeout,
manual_timeout = '',
preference_values,
text,
configNameLabel,
title,
onClose,
onSave,
Expand Down Expand Up @@ -114,7 +114,7 @@ class EditDialog extends React.Component {
</TableData>
</TableRow>
<TableRow>
<TableData>{text}</TableData>
<TableData>{configNameLabel}</TableData>
<TableData>{config.name}</TableData>
</TableRow>
<TableRow>
Expand Down Expand Up @@ -259,12 +259,12 @@ class EditDialog extends React.Component {

EditDialog.propTypes = {
config: PropTypes.model.isRequired,
configNameLabel: PropTypes.string.isRequired,
config_name: PropTypes.string,
family_name: PropTypes.string,
manual_timeout: PropTypes.string,
nvt: PropTypes.object.isRequired,
preference_values: PropTypes.object.isRequired,
text: PropTypes.string.isRequired,
timeout: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
onClose: PropTypes.func.isRequired,
Expand Down

0 comments on commit 3a12e31

Please sign in to comment.