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:
softwarefactory-project-zuul[bot] 2019-12-05 21:24:06 +00:00 committed by GitHub
commit 01161c7afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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`}

View File

@ -10,7 +10,7 @@ const NOT_FOUND = 'not found';
class JobTypeRedirect extends Component {
static defaultProps = {
view: 'details',
view: 'output',
};
constructor(props) {