66ab14144a
This builds on API changes in #6017 and #6021 to conditionally turn off the “Run Job” button based on the current token’s capabilities, or the capabilities of the anonymous policy if no token is present. If you try to visit the job-run route directly, it redirects to the job list.
10 lines
210 B
JavaScript
10 lines
210 B
JavaScript
import Model from 'ember-data/model';
|
|
import attr from 'ember-data/attr';
|
|
|
|
export default Model.extend({
|
|
name: attr('string'),
|
|
description: attr('string'),
|
|
rules: attr('string'),
|
|
rulesJSON: attr(),
|
|
});
|