Browse Source

stackdriver: more renaming

Erik Sundell 7 years ago
parent
commit
149c649132

+ 2 - 2
public/app/features/plugins/pluginTemplateQueryComponentLoader.tsx → public/app/features/plugins/TemplateQueryComponentLoader.tsx

@@ -14,7 +14,7 @@ async function loadComponent(module) {
 }
 }
 
 
 /** @ngInject */
 /** @ngInject */
-function pluginTemplateQueryComponentLoader() {
+function templateQueryComponentLoader() {
   return {
   return {
     restrict: 'E',
     restrict: 'E',
     link: async (scope, elem) => {
     link: async (scope, elem) => {
@@ -32,4 +32,4 @@ function pluginTemplateQueryComponentLoader() {
   };
   };
 }
 }
 
 
-coreModule.directive('pluginTemplateQueryComponent', pluginTemplateQueryComponentLoader);
+coreModule.directive('templateQueryComponentLoader', templateQueryComponentLoader);

+ 1 - 1
public/app/features/plugins/all.ts

@@ -4,4 +4,4 @@ import './import_list/import_list';
 import './ds_edit_ctrl';
 import './ds_edit_ctrl';
 import './datasource_srv';
 import './datasource_srv';
 import './plugin_component';
 import './plugin_component';
-import './pluginTemplateQueryComponentLoader';
+import './TemplateQueryComponentLoader';

+ 5 - 8
public/app/features/templating/partials/editor.html

@@ -120,7 +120,8 @@
 
 
 			<div class="gf-form">
 			<div class="gf-form">
 				<span class="gf-form-label width-9">Values</span>
 				<span class="gf-form-label width-9">Values</span>
-				<input type="text" class="gf-form-input" ng-model='current.query' placeholder="1m,10m,1h,6h,1d,7d" ng-model-onblur ng-change="runQuery()" required></input>
+				<input type="text" class="gf-form-input" ng-model='current.query' placeholder="1m,10m,1h,6h,1d,7d" ng-model-onblur
+				 ng-change="runQuery()" required></input>
 			</div>
 			</div>
 
 
 			<div class="gf-form-inline">
 			<div class="gf-form-inline">
@@ -199,14 +200,10 @@
 			</div>
 			</div>
 
 
 			<rebuild-on-change property="currentDatasource">
 			<rebuild-on-change property="currentDatasource">
-				<plugin-template-query-component>
-				</plugin-template-query-component>
+				<template-query-component-loader>
+				</template-query-component-loader>
 			</rebuild-on-change>
 			</rebuild-on-change>
 
 
-			<!-- <div class="gf-form">
-				<span class="gf-form-label width-7">Query</span>
-				<input type="text" class="gf-form-input" ng-model='current.query' placeholder="metric name or tags query" ng-model-onblur ng-change="runQuery()" required></input>
-			</div> -->
 			<div class="gf-form">
 			<div class="gf-form">
 				<span class="gf-form-label width-7">
 				<span class="gf-form-label width-7">
 					Regex
 					Regex
@@ -325,4 +322,4 @@
 		</div>
 		</div>
 
 
 	</form>
 	</form>
-</div>
+</div>