Skip to content

Commit

Permalink
Argo app created to be logged in backend, ux issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NagendraOpsmx committed Feb 7, 2024
1 parent 8ec1668 commit d1fcb4d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const ApplicationCreatePanel = (props: {
}>
{({projects, clusters, reposInfo}) => {
if (pathHasOpsmx) {
window.parent.postMessage({msg:'loadEvent'},'*');
window.parent.postMessage(window.btoa(JSON.stringify({msg:'loadEvent'})),'*')
}
const repos = reposInfo.map(info => info.repo).sort();
const app = deepMerge(DEFAULT_APP, props.app || {});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export const ApplicationsList = (props: RouteComponentProps<{}>) => {
isShown={!!appInput}
onClose={() => {
if(pathHasOpsmx){
window.parent.postMessage({msg:'closeEvent'},'*')
window.parent.postMessage(window.btoa(JSON.stringify({msg:'closeEvent'})),'*')
}
ctx.navigation.goto('.', {new: null}, {replace: true})}}
header={
Expand All @@ -603,7 +603,7 @@ export const ApplicationsList = (props: RouteComponentProps<{}>) => {
qe-id='applications-list-button-cancel'
onClick={() => {
if(pathHasOpsmx){
window.parent.postMessage({msg:'closeEvent'},'*')
window.parent.postMessage(window.btoa(JSON.stringify({msg:'closeEvent'})),'*')
}
ctx.navigation.goto('.', {new: null}, {replace: true})}}
className='argo-button argo-button--base-o'>
Expand All @@ -622,7 +622,7 @@ export const ApplicationsList = (props: RouteComponentProps<{}>) => {
await services.applications.create(app);
//iframe msg alert needed
if(pathHasOpsmx){
window.parent.postMessage({msg:'saveEvent'},'*')
window.parent.postMessage(window.btoa(JSON.stringify({msg:'saveEvent',appName:app['metadata']['name']})),'*')
}
ctx.navigation.goto('.', {new: null}, {replace: true});
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/applications/components/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export async function deleteApplication(appName: string, appNamespace: string, a
}
}
},
{name: 'argo-icon-warning', color: 'info'},
{name: 'argo-icon-warning', color: ''},
'',
{propagationPolicy: 'foreground'}
);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/sidebar/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
color: white;
background-color: $silver-lining;
overflow: auto;
z-index: 0;
z-index: 0 !important;

&__logo {
justify-content: center;
Expand Down

0 comments on commit d1fcb4d

Please sign in to comment.