mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
Update job redirects and tab placement
Change display order of the output tab so that it is second and make it the default for redirects and job launches.
This commit is contained in:
parent
6dc5f91a0f
commit
c5e22f9aa3
@ -76,8 +76,8 @@ class Job extends Component {
|
||||
}
|
||||
|
||||
const tabsArray = [
|
||||
{ name: i18n._(t`Output`), link: `${match.url}/output`, id: 0 },
|
||||
{ name: i18n._(t`Details`), link: `${match.url}/details`, id: 1 },
|
||||
{ name: i18n._(t`Details`), link: `${match.url}/details`, id: 0 },
|
||||
{ name: i18n._(t`Output`), link: `${match.url}/output`, id: 1 },
|
||||
];
|
||||
|
||||
let cardHeader = (
|
||||
@ -115,7 +115,7 @@ class Job extends Component {
|
||||
if (lookup && job) {
|
||||
return (
|
||||
<Switch>
|
||||
<Redirect from="jobs/:id" to={`/jobs/${jobType}/:id/details`} />
|
||||
<Redirect from="jobs/:id" to={`/jobs/${jobType}/:id/output`} />
|
||||
<Redirect
|
||||
from="jobs/:id/details"
|
||||
to={`/jobs/${jobType}/:id/details`}
|
||||
|
||||
@ -10,7 +10,7 @@ const NOT_FOUND = 'not found';
|
||||
|
||||
class JobTypeRedirect extends Component {
|
||||
static defaultProps = {
|
||||
view: 'details',
|
||||
view: 'output',
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user