Преглед изворни кода

Renamed variable value select to select dropdown

Torkel Ödegaard пре 10 година
родитељ
комит
c20fa85b82

+ 1 - 1
public/app/directives/all.js

@@ -11,7 +11,7 @@ define([
   './spectrumPicker',
   './tags',
   './bodyClass',
-  './variableValueSelect',
+  './selectDropDown',
   './metric.segment',
   './grafanaVersionCheck',
   './dropdown.typeahead',

+ 2 - 2
public/app/directives/variableValueSelect.js → public/app/directives/selectDropDown.js

@@ -225,11 +225,11 @@ function (angular, app, _) {
 
   angular
     .module('grafana.directives')
-    .directive('variableValueSelect', function($compile, $window, $timeout) {
+    .directive('selectDropdown', function($compile, $window, $timeout) {
 
       return {
         scope: { variable: "=", onUpdated: "&", getValuesForTag: "&" },
-        templateUrl: 'app/features/dashboard/partials/variableValueSelect.html',
+        templateUrl: 'app/partials/selectDropdown.html',
         controller: 'SelectDropdownCtrl',
         controllerAs: 'vm',
         bindToController: true,

+ 0 - 0
public/app/features/dashboard/partials/variableValueSelect.html → public/app/partials/selectDropdown.html


+ 1 - 1
public/app/partials/submenu.html

@@ -6,7 +6,7 @@
 				<span class="template-variable tight-form-item" ng-show="!variable.hideLabel" style="padding-right: 5px">
 					{{variable.label || variable.name}}:
 				</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>
 		</ul>