mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02: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:
@@ -76,8 +76,8 @@ class Job extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const tabsArray = [
|
const tabsArray = [
|
||||||
{ name: i18n._(t`Output`), link: `${match.url}/output`, id: 0 },
|
{ name: i18n._(t`Details`), link: `${match.url}/details`, id: 0 },
|
||||||
{ name: i18n._(t`Details`), link: `${match.url}/details`, id: 1 },
|
{ name: i18n._(t`Output`), link: `${match.url}/output`, id: 1 },
|
||||||
];
|
];
|
||||||
|
|
||||||
let cardHeader = (
|
let cardHeader = (
|
||||||
@@ -115,7 +115,7 @@ class Job extends Component {
|
|||||||
if (lookup && job) {
|
if (lookup && job) {
|
||||||
return (
|
return (
|
||||||
<Switch>
|
<Switch>
|
||||||
<Redirect from="jobs/:id" to={`/jobs/${jobType}/:id/details`} />
|
<Redirect from="jobs/:id" to={`/jobs/${jobType}/:id/output`} />
|
||||||
<Redirect
|
<Redirect
|
||||||
from="jobs/:id/details"
|
from="jobs/:id/details"
|
||||||
to={`/jobs/${jobType}/:id/details`}
|
to={`/jobs/${jobType}/:id/details`}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const NOT_FOUND = 'not found';
|
|||||||
|
|
||||||
class JobTypeRedirect extends Component {
|
class JobTypeRedirect extends Component {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
view: 'details',
|
view: 'output',
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|||||||
Reference in New Issue
Block a user