Browse Source

HUE-6123 [notebook] Add refresh button to file statement type and remove snippet read only mode

krish 8 years ago
parent
commit
92dfeaa

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1135,6 +1135,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
               <i class="fa fa-external-link-square"></i>
             </a>
           </div>
+          <a class="btn" data-bind="click: function() { getExternalStatement(); }"> <i class="fa fa-lg fa-refresh"/> </a>
           <a class="btn" data-bind="tooltip: { placement: 'bottom', title: 'Save content back to file' }, click: function() { huePubSub.publish('show.saveToFile.modal'); }"><i class="fa fa-save"></i></a>
           <!-- /ko -->
         </div>
@@ -1169,7 +1170,6 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
         onBlur: saveTemporarySnippet,
         highlightedRange: result.statement_range,
         useNewAutocompleter: $root.useNewAutocompleter,
-        readOnly: statementType() !== 'text',
         aceOptions: {
           showLineNumbers: $root.editorMode(),
           showGutter: $root.editorMode(),