Browse Source

Show disable remove {team,project} buttons

David Cramer 10 years ago
parent
commit
75622cc0ef

+ 3 - 1
src/sentry/templates/sentry/projects/manage.html

@@ -52,8 +52,10 @@
                     {% if not project.is_internal_project %}
                         <a href="{% url 'sentry-remove-project' project.organization.slug project.slug %}" class="btn btn-danger">{% trans "Remove Project" %}</a>
                     {% else %}
-                        <p class="pull-right">{% trans "This project cannot be removed. It is used internally by the Sentry server." %}</p>
+                        <a class="btn btn-danger disabled tip" title="{% trans "This project cannot be removed. It is used internally by the Sentry server." %}">{% trans "Remove Project" %}</a>
                     {% endif %}
+                {% else %}
+                    <a class="btn btn-danger disabled tip" title="{% trans "You do not have the required permission to remove this project." %}">{% trans "Remove Project" %}</a>
                 {% endif %}
             </div>
         </form>

+ 2 - 0
src/sentry/templates/sentry/teams/manage.html

@@ -47,6 +47,8 @@
       <button type="submit" class="btn btn-primary">{% trans "Save Changes" %}</button>
       {% if can_remove_team %}
           <a href="{% url 'sentry-remove-team' organization.slug team.slug %}" class="btn btn-danger">{% trans "Remove Team" %}</a>
+      {% else %}
+          <a class="btn btn-danger disabled tip" title="{% trans "You do not have the required permission to remove this team." %}">{% trans "Remove Team" %}</a>
       {% endif %}
     </fieldset>
   </form>