Commit 3de041a4 by Torkel Ödegaard

feat(mixed datasource): added datasource name to left of query hamburger #436

parent 00f5f8b2
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</a> </a>
</li> </li>
<li class="tight-form-item small" ng-show="target.datasource"> <li class="tight-form-item small" ng-show="target.datasource">
<i class="fa fa-database"></i> <em>{{target.datasource}}</em> <em>{{target.datasource}}</em>
</li> </li>
<li class="tight-form-item"> <li class="tight-form-item">
<div class="dropdown"> <div class="dropdown">
......
...@@ -6,36 +6,26 @@ ...@@ -6,36 +6,26 @@
<i class="fa fa-warning"></i> <i class="fa fa-warning"></i>
</a> </a>
</li> </li>
<li class="tight-form-item"> <li class="tight-form-item small" ng-show="target.datasource">
<a class="pointer" tabindex="1" ng-click="toggleQueryMode()"> <em>{{target.datasource}}</em>
<i class="fa fa-pencil"></i>
</a>
</li> </li>
<li class="tight-form-item"> <li class="tight-form-item">
<div class="dropdown"> <div class="dropdown">
<a class="pointer dropdown-toggle" <a class="pointer dropdown-toggle" data-toggle="dropdown" tabindex="1">
data-toggle="dropdown"
tabindex="1">
<i class="fa fa-bars"></i> <i class="fa fa-bars"></i>
</a> </a>
<ul class="dropdown-menu pull-right" role="menu"> <ul class="dropdown-menu pull-right" role="menu">
<a tabindex="1" ng-click="toggleEditorMode()">
Switch editor mode
</a>
<li role="menuitem"> <li role="menuitem">
<a tabindex="1" <a tabindex="1" ng-click="duplicate()">Duplicate</a>
ng-click="duplicate()">
Duplicate
</a>
</li> </li>
<li role="menuitem"> <li role="menuitem">
<a tabindex="1" <a tabindex="1" ng-click="moveMetricQuery($index, $index-1)">Move up</a>
ng-click="moveMetricQuery($index, $index-1)">
Move up
</a>
</li> </li>
<li role="menuitem"> <li role="menuitem">
<a tabindex="1" <a tabindex="1" ng-click="moveMetricQuery($index, $index+1)">Move down</a>
ng-click="moveMetricQuery($index, $index+1)">
Move down
</a>
</li> </li>
</ul> </ul>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment