mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Make environment subscribe-able
This commit is contained in:
@@ -113,8 +113,8 @@ function getVerbosityDetails () {
|
||||
return { label, value };
|
||||
}
|
||||
|
||||
function getEnvironmentDetails (custom_virtualenv) {
|
||||
const value = custom_virtualenv || resource.model.get('custom_virtualenv');
|
||||
function getEnvironmentDetails (virtualenv) {
|
||||
const value = virtualenv || resource.model.get('custom_virtualenv');
|
||||
|
||||
if (!value || value === '') {
|
||||
return null;
|
||||
|
||||
@@ -39,6 +39,7 @@ function JobStatusService (moment, message) {
|
||||
elapsed: model.get('elapsed'),
|
||||
started: model.get('started'),
|
||||
finished: model.get('finished'),
|
||||
environment: model.get('custom_virtualenv'),
|
||||
scm: {
|
||||
id: model.get('summary_fields.project_update.id'),
|
||||
status: model.get('summary_fields.project_update.status')
|
||||
@@ -255,6 +256,12 @@ function JobStatusService (moment, message) {
|
||||
this.updateRunningState();
|
||||
};
|
||||
|
||||
this.setEnvironment = env => {
|
||||
if (!env) return;
|
||||
|
||||
this.state.environment = env;
|
||||
};
|
||||
|
||||
this.setStatsEvent = data => {
|
||||
if (!data) return;
|
||||
|
||||
@@ -296,6 +303,7 @@ function JobStatusService (moment, message) {
|
||||
this.setElapsed(model.get('elapsed'));
|
||||
this.setStarted(model.get('started'));
|
||||
this.setJobStatus(model.get('status'));
|
||||
this.setEnvironment(model.get('custom_virtualenv'));
|
||||
|
||||
this.initHostStatusCounts({ model });
|
||||
this.initPlaybookCounts({ model });
|
||||
|
||||
Reference in New Issue
Block a user