Commit c20fa85b by Torkel Ödegaard

Renamed variable value select to select dropdown

parent bb2d8107
...@@ -11,7 +11,7 @@ define([ ...@@ -11,7 +11,7 @@ define([
'./spectrumPicker', './spectrumPicker',
'./tags', './tags',
'./bodyClass', './bodyClass',
'./variableValueSelect', './selectDropDown',
'./metric.segment', './metric.segment',
'./grafanaVersionCheck', './grafanaVersionCheck',
'./dropdown.typeahead', './dropdown.typeahead',
......
...@@ -225,11 +225,11 @@ function (angular, app, _) { ...@@ -225,11 +225,11 @@ function (angular, app, _) {
angular angular
.module('grafana.directives') .module('grafana.directives')
.directive('variableValueSelect', function($compile, $window, $timeout) { .directive('selectDropdown', function($compile, $window, $timeout) {
return { return {
scope: { variable: "=", onUpdated: "&", getValuesForTag: "&" }, scope: { variable: "=", onUpdated: "&", getValuesForTag: "&" },
templateUrl: 'app/features/dashboard/partials/variableValueSelect.html', templateUrl: 'app/partials/selectDropdown.html',
controller: 'SelectDropdownCtrl', controller: 'SelectDropdownCtrl',
controllerAs: 'vm', controllerAs: 'vm',
bindToController: true, bindToController: true,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<span class="template-variable tight-form-item" ng-show="!variable.hideLabel" style="padding-right: 5px"> <span class="template-variable tight-form-item" ng-show="!variable.hideLabel" style="padding-right: 5px">
{{variable.label || variable.name}}: {{variable.label || variable.name}}:
</span> </span>
<variable-value-select variable="variable" on-updated="variableUpdated(variable)" get-values-for-tag="getValuesForTag(variable, tagKey)"></variable-value-select> <select-dropdown variable="variable" on-updated="variableUpdated(variable)" get-values-for-tag="getValuesForTag(variable, tagKey)"></select-dropdown>
</li> </li>
</ul> </ul>
......
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