mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
Fix resource references in models
This commit is contained in:
committed by
Jake McDermott
parent
d6e7058947
commit
e143698484
@@ -15,12 +15,11 @@ function resolveResource (Job, ProjectUpdate, AdHocCommand, SystemJob, WorkflowJ
|
|||||||
const { type } = $stateParams;
|
const { type } = $stateParams;
|
||||||
|
|
||||||
let Resource;
|
let Resource;
|
||||||
let related;
|
let related = 'events';
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'project':
|
case 'project':
|
||||||
Resource = ProjectUpdate;
|
Resource = ProjectUpdate;
|
||||||
related = 'events';
|
|
||||||
break;
|
break;
|
||||||
case 'playbook':
|
case 'playbook':
|
||||||
Resource = Job;
|
Resource = Job;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
let BaseModel;
|
let BaseModel;
|
||||||
|
|
||||||
function SystemJobModel (method, resource, config) {
|
function SystemJobModel (method, resource, config) {
|
||||||
BaseModel.call(this, 'jobs');
|
BaseModel.call(this, 'system_jobs');
|
||||||
|
|
||||||
this.Constructor = SystemJobModel;
|
this.Constructor = SystemJobModel;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user