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

Remove now incorrect warning when deleting DCs #1619

Merged
merged 1 commit into from Jun 1, 2017
Merged
Show file tree
Hide file tree
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
12 changes: 4 additions & 8 deletions app/views/modals/delete-resource.html
Expand Up @@ -6,6 +6,10 @@ <h1>Are you sure you want to delete the {{typeDisplayName || (kind | humanizeKin
'<strong>{{displayName ? displayName : resourceName}}</strong>'?</h1>

<p>
<span ng-if="kind === 'DeploymentConfig'">
This will delete the deployment config, all rollout history, and any running pods.
</span>

<span ng-if="kind === 'Deployment'">
This will delete the deployment, all rollout history, and any running pods.
</span>
Expand Down Expand Up @@ -42,14 +46,6 @@ <h1>Are you sure you want to delete the {{typeDisplayName || (kind | humanizeKin
</p>
</div>

<div ng-if="kind === 'DeploymentConfig'">
<strong>Note:</strong> None of the deployments created by this deployment config will be deleted.

To delete the deployment config and all of its deployments, you can run the command
<pre class="code prettyprint mar-top-md">oc delete dc {{resourceName}} -n {{projectName}}</pre>
Learn more about the <a href="command-line">command line tools</a>.
</div>

<!--
If this is a deployment config or replication controller with associated HPAs, prompt to
delete the HPAs as well.
Expand Down
8 changes: 3 additions & 5 deletions dist/scripts/templates.js
Expand Up @@ -10487,6 +10487,9 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"<div class=\"modal-body\">\n" +
"<h1>Are you sure you want to delete the {{typeDisplayName || (kind | humanizeKind)}} '<strong>{{displayName ? displayName : resourceName}}</strong>'?</h1>\n" +
"<p>\n" +
"<span ng-if=\"kind === 'DeploymentConfig'\">\n" +
"This will delete the deployment config, all rollout history, and any running pods.\n" +
"</span>\n" +
"<span ng-if=\"kind === 'Deployment'\">\n" +
"This will delete the deployment, all rollout history, and any running pods.\n" +
"</span>\n" +
Expand All @@ -10508,11 +10511,6 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"<input ng-model=\"confirmName\" id=\"resource-to-delete\" type=\"text\" class=\"form-control input-lg\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" autofocus>\n" +
"</p>\n" +
"</div>\n" +
"<div ng-if=\"kind === 'DeploymentConfig'\">\n" +
"<strong>Note:</strong> None of the deployments created by this deployment config will be deleted. To delete the deployment config and all of its deployments, you can run the command\n" +
"<pre class=\"code prettyprint mar-top-md\">oc delete dc {{resourceName}} -n {{projectName}}</pre>\n" +
"Learn more about the <a href=\"command-line\">command line tools</a>.\n" +
"</div>\n" +
"\n" +
"<div ng-if=\"hpaList.length > 0\">\n" +
"<p>\n" +
Expand Down