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

Hide "Delete dashboard" button for default dashboard #3234

Open
wants to merge 1 commit into
base: bugfix/delete-default-dashboard
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/nav/web/templates/webfront/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h4>Import dashboard</h4>
</div>

<div class="column medium-4">
{% if request.account.account_dashboards.count > 1 %}
{% if request.account.account_dashboards.count > 1 and not dashboard.is_default %}
<form id="form-delete-dashboard" method="post" action="{% url 'delete-dashboard' dashboard.pk %}">
<input type="submit" class="small button alert expand" value="Delete dashboard">
</form>
Expand Down
Loading