浏览代码

HUE-2727 [spark] Use the correct attributes for the snippet settings

Johan Ahlen 10 年之前
父节点
当前提交
3f04157
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      apps/spark/src/spark/templates/editor_components.mako

+ 6 - 6
apps/spark/src/spark/templates/editor_components.mako

@@ -395,27 +395,27 @@ from django.utils.translation import ugettext as _
     </div>
     <div class="snippet-settings-body">
       <form class="form-horizontal">
-        <!-- ko if: typeof properties.driver_cores != 'undefined' -->
+        <!-- ko if: typeof properties.driverCores != 'undefined' -->
         <div class="control-group" style="float: left;">
           <label class="control-label">${_('Driver Cores')}</label>
           <div class="controls">
-            <input type="text" class="input-small" data-bind="numericTextInput: { value: properties.driver_cores, precision: 1, allowEmpty: true }, valueUpdate:'afterkeydown'" title="${ _('Number of cores used by the driver, only in cluster mode (Default: 1)') }"/>
+            <input type="text" class="input-small" data-bind="numericTextInput: { value: properties.driverCores, precision: 1, allowEmpty: true }, valueUpdate:'afterkeydown'" title="${ _('Number of cores used by the driver, only in cluster mode (Default: 1)') }"/>
           </div>
         </div>
         <!-- /ko -->
-        <!-- ko if: typeof properties.executor_cores != 'undefined' -->
+        <!-- ko if: typeof properties.executorCores != 'undefined' -->
         <div class="control-group" style="float: left;">
           <label class="control-label">${_('Executor Cores')}</label>
           <div class="controls">
-            <input type="text" class="input-small" data-bind="numericTextInput: { value: properties.executor_cores, precision: 1, allowEmpty: true }, valueUpdate:'afterkeydown'" title="${ _('Number of cores per executor (Default: 1)') }"/>
+            <input type="text" class="input-small" data-bind="numericTextInput: { value: properties.executorCores, precision: 1, allowEmpty: true }, valueUpdate:'afterkeydown'" title="${ _('Number of cores per executor (Default: 1)') }"/>
           </div>
         </div>
         <!-- /ko -->
-        <!-- ko if: typeof properties.num_executors != 'undefined' -->
+        <!-- ko if: typeof properties.numExecutors != 'undefined' -->
         <div class="control-group" style="float: left;">
           <label class="control-label">${_('Executors')}</label>
           <div class="controls">
-            <input type="text" class="input-small" data-bind="numericTextInput: { value: properties.num_executors, precision: 1, allowEmpty: true}, valueUpdate:'afterkeydown'" title="${ _('Number of executors to launch (Default: 2)') }"/>
+            <input type="text" class="input-small" data-bind="numericTextInput: { value: properties.numExecutors, precision: 1, allowEmpty: true}, valueUpdate:'afterkeydown'" title="${ _('Number of executors to launch (Default: 2)') }"/>
           </div>
         </div>
         <!-- /ko -->