Skip to content

Commit

Permalink
implement kebab menu for query page result options
Browse files Browse the repository at this point in the history
  • Loading branch information
alison985 committed Sep 9, 2018
1 parent 1b9e1a8 commit 9634c9d
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions client/app/pages/queries/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,22 +268,29 @@ <h3>
<div class="bottom-controller-container">
<div class="bottom-controller">
<button class="m-r-5 btn btn-default btn-edit-visualisation" ng-click="openVisualizationEditor(selectedTab)" ng-if="!query.isNew() && canEdit"><span class="fa fa-edit"></span><span class="hidden-xs hidden-s hidden-m"> Edit Visualization</span></button>
<button class="m-r-5 btn btn-default" ng-click="openAddToDashboardForm(selectedTab)"><span class="fa fa-plus-circle"></span><span class="hidden-xs hidden-s hidden-m"> Add to Dashboard</span></button>
<button class="m-r-5 btn btn-default" ng-click="showEmbedDialog(query, selectedTab)" ng-if="!query.isNew()"><span class="fa fa-code"></span><span class="hidden-xs hidden-s hidden-m"> Embed</span></button>

<div class="m-r-5 btn-group dropup" uib-dropdown>
<button type="button" class="btn btn-default dropup-toggle" ng-disabled="queryExecuting || !queryResult.getData()" aria-haspopup="true"
<button type="button" class="btn btn-default dropup-toggle" aria-haspopup="true"
uib-dropdown-toggle aria-expanded="false">
<span class="fa fa-download"></span><span class="hidden-xs hidden-s hidden-m"> Download Dataset </span><span class="caret"></span>
<span class="fa fa-ellipsis-v"></span>
</button>
<ul class="dropdown-menu" ng-class="{'pull-right': !query.isNew()}" uib-dropdown-menu>
<ul class="dropdown-menu" uib-dropdown-menu>
<li>
<a query-result-link target="_self" ng-click="openAddToDashboardForm(selectedTab)">
<span class="fa fa-plus-circle"></span> Add to Dashboard
</a>
</li>
<li>
<a ng-click="showEmbedDialog(query, selectedTab)" ng-if="!query.isNew()">
<span class="fa fa-code"></span> Embed
</a>
</li>
<li>
<a query-result-link target="_self">
<a query-result-link target="_self" ng-disabled="queryExecuting || !queryResult.getData()">
<span class="fa fa-file-o"></span> Download as CSV File
</a>
</li>
<li>
<a query-result-link file-type="xlsx" target="_self">
<a query-result-link file-type="xlsx" target="_self" ng-disabled="queryExecuting || !queryResult.getData()">
<span class="fa fa-file-excel-o"></span> Download as Excel File
</a>
</li>
Expand Down

0 comments on commit 9634c9d

Please sign in to comment.