Fixed redirect bug
This commit is contained in:
parent
247894f6ad
commit
38b66fafa6
3 changed files with 410 additions and 213 deletions
611
package-lock.json
generated
611
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -40,7 +40,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tanstack/react-query": "^4.0.0",
|
|
||||||
"amqplib": "^0.8.0",
|
"amqplib": "^0.8.0",
|
||||||
"chalk": "^5.0.1",
|
"chalk": "^5.0.1",
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.0",
|
||||||
|
@ -51,7 +50,6 @@
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"pg-promise": "^10.11.1",
|
"pg-promise": "^10.11.1",
|
||||||
"postgres-migrations": "^5.3.0",
|
"postgres-migrations": "^5.3.0",
|
||||||
"react-router-dom": "^6.3.0",
|
|
||||||
"socket.io": "^4.4.1",
|
"socket.io": "^4.4.1",
|
||||||
"socket.io-client": "^4.4.1",
|
"socket.io-client": "^4.4.1",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^8.3.2"
|
||||||
|
@ -64,6 +62,7 @@
|
||||||
"@rollup/plugin-commonjs": "^22.0.0",
|
"@rollup/plugin-commonjs": "^22.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||||
"@rollup/plugin-replace": "^4.0.0",
|
"@rollup/plugin-replace": "^4.0.0",
|
||||||
|
"@tanstack/react-query": "^4.0.0",
|
||||||
"@vitejs/plugin-react": "1.1.1",
|
"@vitejs/plugin-react": "1.1.1",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"caxa": "^2.1.0",
|
"caxa": "^2.1.0",
|
||||||
|
@ -71,10 +70,11 @@
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"react": "^18.1.0",
|
"react": "^18.1.0",
|
||||||
"react-dom": "^18.1.0",
|
"react-dom": "^18.1.0",
|
||||||
|
"react-router-dom": "^6.3.0",
|
||||||
"readline-sync": "^1.4.10",
|
"readline-sync": "^1.4.10",
|
||||||
"rollup": "^2.72.0",
|
"rollup": "^2.72.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"vite": "2.7.0"
|
"vite": "3.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"rabbiteer": "gitlab:Dunemask/rabbiteer"
|
"rabbiteer": "gitlab:Dunemask/rabbiteer"
|
||||||
|
|
|
@ -108,8 +108,8 @@ export default function FailingBox(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const jobOnClick = () => {
|
const jobOnClick = () => {
|
||||||
if (pipeline) return navigateToJob;
|
if (pipeline) return navigateToJob();
|
||||||
if (!job) return retryTest;
|
if (!job) return retryTest();
|
||||||
navigateToJob();
|
navigateToJob();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ export default function FailingBox(props) {
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<IconButton aria-label="retry" component="span" onClick={jobOnClick()}>
|
<IconButton aria-label="retry" component="span" onClick={jobOnClick}>
|
||||||
{jobIcon()}
|
{jobIcon()}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue