Only flash when permissions change

This commit is contained in:
Montana
2019-03-29 12:01:15 -04:00
parent 2d7e17e522
commit d70332836b
2 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<section class="member-list" id="portfolio-members">
<div class='responsive-table-wrapper panel'>
{% if g.matchesPath("portfolio-members") %}
{% if g.matchesPath("portfolio-members") and has_changed %}
{% include "fragments/flash.html" %}
{% endif %}
<form method='POST' id="member-perms" action='{{ url_for("portfolios.edit_portfolio_members", portfolio_id=portfolio.id) }}' autocomplete="off" enctype="multipart/form-data">