Skip to content

Commit

Permalink
encoded event listner msg earlier removed (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
NagendraOpsmx committed Apr 2, 2024
1 parent 8a1d74f commit 93c8eed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const ApplicationCreatePanel = (props: {
}>
{({projects, clusters, reposInfo}) => {
if (pathHasOpsmx) {
window.parent.postMessage(window.btoa(JSON.stringify({msg:'loadEvent'})),'*')
window.parent.postMessage({msg:'loadEvent'},'*')
}
const repos = reposInfo.map(info => info.repo).sort();
const repoInfo = reposInfo.find(info => info.repo === app.spec.source.repoURL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ export const ApplicationsList = (props: RouteComponentProps<{}>) => {
isShown={!!appInput}
onClose={() => {
if(pathHasOpsmx){
window.parent.postMessage(window.btoa(JSON.stringify({msg:'closeEvent'})),'*')
window.parent.postMessage({msg:'closeEvent'},'*')
}
ctx.navigation.goto('.', {new: null}, {replace: true})}}
header={
Expand All @@ -628,7 +628,7 @@ export const ApplicationsList = (props: RouteComponentProps<{}>) => {
qe-id='applications-list-button-cancel'
onClick={() => {
if(pathHasOpsmx){
window.parent.postMessage(window.btoa(JSON.stringify({msg:'closeEvent'})),'*')
window.parent.postMessage({msg:'closeEvent'},'*')
}
ctx.navigation.goto('.', {new: null}, {replace: true})}}
className='argo-button argo-button--base-o'>
Expand All @@ -647,7 +647,7 @@ export const ApplicationsList = (props: RouteComponentProps<{}>) => {
await services.applications.create(app);
//iframe msg alert needed
if(pathHasOpsmx){
window.parent.postMessage(window.btoa(JSON.stringify({msg:'saveEvent',appName:app['metadata']['name']})),'*')
window.parent.postMessage({msg:'saveEvent',appName:app['metadata']['name']},'*')
}
ctx.navigation.goto('.', {new: null}, {replace: true});
} catch (e) {
Expand Down

0 comments on commit 93c8eed

Please sign in to comment.