mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Fix resource references in models
This commit is contained in:
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user