Skip to content

Commit

Permalink
Argo app created to be logged in backend, ux issue (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
NagendraOpsmx committed Apr 2, 2024
1 parent 0a9957b commit 8a1d74f
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 @@ -143,7 +143,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 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({msg:'closeEvent'},'*')
window.parent.postMessage(window.btoa(JSON.stringify({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({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 @@ -647,7 +647,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 @@ -123,7 +123,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 @@ -15,7 +15,7 @@ $deselected-text: #818d94;
color: white;
background-color: #0f2733;
overflow: auto;
z-index: 2;
z-index: 0 !important;

&__container {
padding: 0 5px;
Expand Down

0 comments on commit 8a1d74f

Please sign in to comment.