mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Don’t show “Add to dashboard” in dropdown to unsaved queries.
This commit is contained in:
@@ -258,7 +258,7 @@
|
||||
</button>
|
||||
<ul class="dropdown-menu" uib-dropdown-menu>
|
||||
<li>
|
||||
<a target="_self" ng-click="openAddToDashboardForm(selectedTab)" ng-if="!query.is_draft && !query.is_archived">
|
||||
<a target="_self" ng-click="openAddToDashboardForm(selectedTab)" ng-if="!query.isNew() && (!query.is_draft || !query.is_archived)">
|
||||
<span class="fa fa-plus-circle"></span> Add to Dashboard
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user