aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/Policy/ViewAllPolicies.js
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-03-26 18:31:08 +0100
committerS�bastien Determe <sebastien.determe@intl.att.com>2021-04-07 12:51:19 +0000
commit42fa9f46d63968458cae9b2c72e7c4d0daca394b (patch)
tree26582950b74d6415ab5555fc06a94a6c6b7f5969 /ui-react/src/components/dialogs/Policy/ViewAllPolicies.js
parent7f685aa342813c611b6e43d7b4a869c7454baddc (diff)
Modify the PolicyDeploymentEditor to support checkboxes
Add code to the PolicyDeploymentEditor so that checkboxes are rendered. Issue-ID: POLICY-2931 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3c933272419770595b706f6950f821220a76f789
Diffstat (limited to 'ui-react/src/components/dialogs/Policy/ViewAllPolicies.js')
-rw-r--r--ui-react/src/components/dialogs/Policy/ViewAllPolicies.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/ui-react/src/components/dialogs/Policy/ViewAllPolicies.js b/ui-react/src/components/dialogs/Policy/ViewAllPolicies.js
index 48d52a14c..f986dff29 100644
--- a/ui-react/src/components/dialogs/Policy/ViewAllPolicies.js
+++ b/ui-react/src/components/dialogs/Policy/ViewAllPolicies.js
@@ -75,7 +75,8 @@ const DetailedRow = styled.div`
font-size: ${props => props.theme.policyEditorFontSize};
width: 97%;
margin-left: auto;
- margin-right: 0;
+ margin-right: auto;
+ margin-top: 20px;
`
@@ -291,13 +292,14 @@ export default class ViewAllPolicies extends React.Component {
render: rowData => {
return (
<DetailedRow>
- <PolicyEditor policyModelType={rowData["type"]} policyModelTypeVersion={rowData["type_version"]} policyName={rowData["name"]} policyVersion={rowData["version"]} policyProperties={rowData["properties"]} policyUpdateFunction={this.getAllPolicies} />
+ <PolicyEditor policyModelType={rowData["type"]} policyModelTypeVersion={rowData["type_version"]} policyName={rowData["name"]} policyVersion={rowData["version"]} policyProperties={rowData["properties"]} policiesTableUpdateFunction={this.getAllPolicies} />
</DetailedRow>
)
},
},
{
icon: DehazeIcon,
+ openIcon: DehazeIcon,
tooltip: 'Show Raw Data',
render: rowData => {
return (
@@ -309,10 +311,13 @@ export default class ViewAllPolicies extends React.Component {
},
{
icon: PublishIcon,
+ openIcon: PublishIcon,
tooltip: 'PDP Group Deployment',
render: rowData => {
return (
- <PolicyDeploymentEditor policyData={rowData}/>
+ <DetailedRow>
+ <PolicyDeploymentEditor policyData={rowData} policiesTableUpdateFunction={this.getAllPolicies} />
+ </DetailedRow>
)
},
}
@@ -367,6 +372,7 @@ export default class ViewAllPolicies extends React.Component {
},
{
icon: DehazeIcon,
+ openIcon: DehazeIcon,
tooltip: 'Show Raw Data',
render: rowData => {
return (
@@ -378,11 +384,12 @@ export default class ViewAllPolicies extends React.Component {
},
{
icon: AddIcon,
+ openIcon: AddIcon,
tooltip: 'Create a policy from this model',
render: rowData => {
return (
<DetailedRow>
- <PolicyEditor policyModelType={rowData["policyModelType"]} policyModelTypeVersion={rowData["version"]} policyProperties={{}} policyUpdateFunction={this.getAllPolicies} />
+ <PolicyEditor policyModelType={rowData["policyModelType"]} policyModelTypeVersion={rowData["version"]} policyProperties={{}} policiesTableUpdateFunction={this.getAllPolicies} />
</DetailedRow>
)
},