mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -02:30
Addresses permission problem on host group list and adds convergence data to Prompt Detail
This commit is contained in:
@@ -21,7 +21,7 @@ class Hosts extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
readGroupsOptions(id) {
|
readGroupsOptions(id) {
|
||||||
return this.http.options(`${this.baseUrl}${id}/all_groups/`);
|
return this.http.options(`${this.baseUrl}${id}/groups/`);
|
||||||
}
|
}
|
||||||
|
|
||||||
associateGroup(id, groupId) {
|
associateGroup(id, groupId) {
|
||||||
|
|||||||
@@ -87,7 +87,12 @@ function omitOverrides(resource, overrides, defaultConfig) {
|
|||||||
return clonedResource;
|
return clonedResource;
|
||||||
}
|
}
|
||||||
|
|
||||||
function PromptDetail({ resource, launchConfig = {}, overrides = {} }) {
|
function PromptDetail({
|
||||||
|
resource,
|
||||||
|
launchConfig = {},
|
||||||
|
overrides = {},
|
||||||
|
workflowNode = false,
|
||||||
|
}) {
|
||||||
const VERBOSITY = {
|
const VERBOSITY = {
|
||||||
0: t`0 (Normal)`,
|
0: t`0 (Normal)`,
|
||||||
1: t`1 (Verbose)`,
|
1: t`1 (Verbose)`,
|
||||||
@@ -109,6 +114,12 @@ function PromptDetail({ resource, launchConfig = {}, overrides = {} }) {
|
|||||||
label={t`Type`}
|
label={t`Type`}
|
||||||
value={toTitleCase(details.unified_job_type || details.type)}
|
value={toTitleCase(details.unified_job_type || details.type)}
|
||||||
/>
|
/>
|
||||||
|
{workflowNode && (
|
||||||
|
<Detail
|
||||||
|
label={t`Convergence`}
|
||||||
|
value={workflowNode?.all_parents_must_converge ? t`All` : t`Any`}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Detail label={t`Timeout`} value={formatTimeout(details?.timeout)} />
|
<Detail label={t`Timeout`} value={formatTimeout(details?.timeout)} />
|
||||||
{details?.type === 'project' && (
|
{details?.type === 'project' && (
|
||||||
<PromptProjectDetail resource={details} />
|
<PromptProjectDetail resource={details} />
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ function NodeViewModal({ readOnly }) {
|
|||||||
launchConfig={launchConfig}
|
launchConfig={launchConfig}
|
||||||
resource={fullUnifiedJobTemplate}
|
resource={fullUnifiedJobTemplate}
|
||||||
overrides={overrides}
|
overrides={overrides}
|
||||||
|
workflowNode={nodeToView.originalNodeObject}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user