Clarify the namespace being deleted

Fixes https://www.pivotaltracker.com/story/show/141418611
This commit is contained in:
Joseph Schorr 2017-03-10 13:25:40 -05:00
parent 47a99fccb6
commit 409ee6137f
4 changed files with 10 additions and 10 deletions

View file

@ -1,12 +1,12 @@
<div class="delete-namespace-view-element" quay-show="!Features.BILLING || subscriptionStatus != 'loading'">
<table class="co-list-table">
<tr>
<td>Delete Account:</td>
<td>Delete {{ namespaceTitle }}:</td>
<td quay-show="!Features.BILLING || subscriptionStatus == 'none'">
<a class="co-modify-link" ng-click="showDeleteNamespace()">Begin deletion</a>
</td>
<td quay-show="Features.BILLING && subscriptionStatus == 'valid'">
<i class="fa fa-exclamation-triangle yellow"></i> You must cancel your billing subscription before this account can be deleted.
<i class="fa fa-exclamation-triangle yellow"></i> You must cancel your billing subscription before this {{ namespaceTitle }} can be deleted.
</td>
</tr>
</table>
@ -15,14 +15,14 @@
<div class="cor-confirm-dialog"
dialog-context="deleteNamespaceInfo"
dialog-action="deleteNamespace(info, callback)"
dialog-title="Delete Account"
dialog-action-title="Delete Account"
dialog-title="Delete {{ namespaceTitle }}"
dialog-action-title="Delete {{ namespaceTitle }}"
dialog-form="context.deleteform"
dialog-button-class="btn-danger">
<form name="context.deleteform" class="co-single-field-dialog">
<div class="co-alert co-alert-danger">
Deleting an account is <strong>non-reversable</strong> and will delete
<strong>all of the account's data</strong> including repositories, created build triggers,
Deleting an {{ namespaceTitle }} is <strong>non-reversable</strong> and will delete
<strong>all of the {{ namespaceTitle }}'s data</strong> including repositories, created build triggers,
and notifications.
</div>

View file

@ -11,7 +11,8 @@ angular.module('quay').directive('deleteNamespaceView', function () {
scope: {
'user': '=user',
'organization': '=organization',
'subscriptionStatus': '=subscriptionStatus'
'subscriptionStatus': '=subscriptionStatus',
'namespaceTitle': '@namespaceTitle'
},
controller: function($scope, $element, UserService) {
$scope.context = {};

View file

@ -118,7 +118,7 @@
</tr>
</table>
<div class="delete-namespace-view" subscription-status="subscriptionStatus" organization="organization"></div>
<div class="delete-namespace-view" subscription-status="subscriptionStatus" organization="organization" namespace-title="organization"></div>
</div>
<!-- Billing Information -->

View file

@ -134,8 +134,7 @@
</tr>
</table>
<div class="delete-namespace-view" subscription-status="subscriptionStatus" user="context.viewuser"
quay-show="Config.AUTHENTICATION_TYPE == 'Database'"></div>
<div class="delete-namespace-view" subscription-status="subscriptionStatus" user="context.viewuser" namespace-title="account" quay-show="Config.AUTHENTICATION_TYPE == 'Database'"></div>
</div>
<!-- Billing Information -->