Skip to content

Commit

Permalink
fix(job): tenant and project select visible change
Browse files Browse the repository at this point in the history
  • Loading branch information
jsers committed Nov 24, 2020
1 parent aa90721 commit f802419
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions job-web/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ function App() {
setLanguage(data.value);
}
}, false);

window.postMessage({
type: 'tenantProjectVisible',
value: false,
}, window.location.origin);

return () => {
window.postMessage({
type: 'tenantProjectVisible',
value: true,
}, window.location.origin);
}
}, []);

return (
Expand Down
12 changes: 12 additions & 0 deletions job-web/src/pages/Deploy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ function index(props: any) {
setTenantProject(data.value);
}
}, false);

window.postMessage({
type: 'tenantProjectVisible',
value: true,
}, window.location.origin);

return () => {
window.postMessage({
type: 'tenantProjectVisible',
value: false,
}, window.location.origin);
}
}, []);

return (
Expand Down

0 comments on commit f802419

Please sign in to comment.