Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1793893: Make clear what uninstalling an operator that works for all namespaces does #4137

Merged
merged 1 commit into from Feb 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -58,6 +58,15 @@ export const UninstallOperatorModal = withHandlePromise((props: UninstallOperato
.catch(_.noop);
};

const context =
props.subscription.metadata.namespace === 'openshift-operators' ? (
<strong>all namespaces</strong>
) : (
<>
the <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 {context}. Your application will keep running, but
it will no longer receive updates or configuration changes.
</div>
</div>
</div>
Expand Down