Skip to content

Commit

Permalink
Bug 1793893: Make clear what uninstalling an operator that works for …
Browse files Browse the repository at this point in the history
…all namespaces does
  • Loading branch information
jhadvig committed Jan 31, 2020
1 parent 4a54902 commit 8c51d29
Showing 1 changed file with 11 additions and 3 deletions.
Expand Up @@ -58,6 +58,15 @@ export const UninstallOperatorModal = withHandlePromise((props: UninstallOperato
.catch(_.noop);
};

const uninstallMsg =
props.subscription.metadata.namespace === 'openshift-operators' ? (
'all the installed namespaces'
) : (
<>
<i>{props.subscription.metadata.namespace}</i> namespace
</>
);

return (
<form onSubmit={submit} name="form" className="modal-content co-catalog-install-modal">
<ModalTitle className="modal-header">Uninstall Operator?</ModalTitle>
Expand All @@ -67,9 +76,8 @@ export const UninstallOperatorModal = withHandlePromise((props: UninstallOperato
<div>
<p className="lead">Uninstall {props.displayName || props.subscription.spec.name}?</p>
<div>
This will remove the operator from <i>{props.subscription.metadata.namespace}</i>.
Your application will keep running, but it will no longer receive updates or
configuration changes.
This will remove the operator from {uninstallMsg}. Your application will keep running,
but it will no longer receive updates or configuration changes.
</div>
</div>
</div>
Expand Down

0 comments on commit 8c51d29

Please sign in to comment.