Commit 732169ab authored by Matija Obreza's avatar Matija Obreza

KPI: added `link` property to Execution

parent 4b33d096
......@@ -113,7 +113,7 @@ class ExecutionDisplay extends React.Component<IExecutionProps, any> {
<Properties>
<PropertiesItem title={ t('common:label.name') }><code>{ execution.name }</code></PropertiesItem>
<PropertiesItem title={ t('kpi.admin.c.executionCard.type') }><b>{ execution.type }</b></PropertiesItem>
<PropertiesItem title={ t('kpi.admin.c.executionCard.property') }><code>{ execution.parameter.entity }.{ execution.property }</code></PropertiesItem>
<PropertiesItem title={ t('kpi.admin.c.executionCard.property') }><code>{ execution.parameter.entity }{ execution.link && `.${execution.link}` }.{ execution.property }</code></PropertiesItem>
</Properties>
</PageSection>
</Grid>
......
......@@ -75,6 +75,12 @@ class ExecutionForm extends React.Component<any, void> {
label={ t(`kpi.admin.c.executionForm.parameter`) }
validate={ [Validators.required] }
/>
<Field
name={ `link` }
component={ TextField }
type="text"
label={ t(`kpi.admin.c.executionForm.link`) }
/>
<Field
name={ `property` }
component={ TextField }
......
......@@ -14,6 +14,7 @@ class Execution {
public lastModifiedDate: Date;
public name: string;
public parameter: KPIParameter;
public link: string;
public property: string;
public title: string;
public type: string;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment