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:
Jake McDermott 2019-12-04 12:34:20 -05:00
parent 6dc5f91a0f
commit c5e22f9aa3
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F
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) {