소스 검색

fix variable name

ryan 6 년 전
부모
커밋
589229d8af
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      public/app/plugins/panel/table2/TablePanel.tsx
  2. 1 1
      public/app/plugins/panel/table2/types.ts

+ 2 - 2
public/app/plugins/panel/table2/TablePanel.tsx

@@ -205,7 +205,7 @@ export class TablePanel extends PureComponent<Props> {
     this.colorState[style.colorMode] = this.getColorForValue(numericValue, style);
   }
 
-  renderRowconstiables(rowIndex) {
+  renderRowVariables(rowIndex) {
     const { panelData } = this.props;
 
     const scopedVars = {};
@@ -249,7 +249,7 @@ export class TablePanel extends PureComponent<Props> {
     let columnHtml;
     if (column.style && column.style.link) {
       // Render cell as link
-      const scopedconsts = this.renderRowconstiables(rowIndex);
+      const scopedconsts = this.renderRowVariables(rowIndex);
       scopedconsts['__cell'] = { value: value };
 
       const cellLink = templateSrv.replace(column.style.linkUrl, scopedconsts, encodeURIComponent);

+ 1 - 1
public/app/plugins/panel/table2/types.ts

@@ -35,7 +35,7 @@ export interface Column {
 
 export interface Options {
   showHeader: boolean;
-  styles: Style[]; // TODO, just a copy from existing table
+  styles: Style[];
   pageSize: number;
 }