mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #5447 from jakemcdermott/fix-job-tab-placement
Update job redirects and tab placement Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
01161c7afd
@ -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