Skip to content

Commit

Permalink
only show query versions when more than one exists (re getredash#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
spasovski authored and Allen Short committed Jan 8, 2018
1 parent f7d335b commit 9f665c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/pages/queries/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h3>
<li ng-if="!query.is_draft && query.id != undefined && (isQueryOwner || currentUser.hasPermission('admin'))"><a ng-click="togglePublished()">Unpublish</a></li>
<li class="divider"></li>
<li ng-if="query.id != undefined"><a ng-click="showApiKey()">Show API Key</a></li>
<li ng-if="query.id && (isQueryOwner || currentUser.hasPermission('admin'))">
<li ng-show="canEdit" ng-if="query.id && (query.version > 1)">
<a ng-click="compareQueryVersion()">Query Versions</a>
</li>
</ul>
Expand Down

0 comments on commit 9f665c6

Please sign in to comment.