Browse Source

HUE-8260 [oozie] Use storageContextPopover for the Editor external links

Romain Rigaux 7 years ago
parent
commit
29d35df9cb

+ 2 - 2
apps/oozie/src/oozie/templates/editor2/common_workflow.mako

@@ -626,7 +626,7 @@
    <!-- /ko -->
 
    <!-- ko if: ! with_label -->
-     <a data-bind="hueLink: '/filebrowser/view=' + ($data.path[0] != '/' && $data.path.indexOf('s3a://') !== 0 ? $root.workflow.properties.deployment_dir() + '/' : '') + $data.path" title="${ _('Open') }">
+     <a data-bind="storageContextPopover: { path: ($data.path[0] != '/' && $data.path.indexOf('s3a://') !== 0 ? $root.workflow.properties.deployment_dir() + '/' : '') + $data.path, offset: { right: 5 }, orientation: 'left' }" title="${ _('Preview') }" href="javascript: void(0);">
        <i class="fa fa-external-link-square"></i>
      </a>
    <!-- /ko -->
@@ -669,7 +669,7 @@
 
 <script type="text/html" id="param-fs-link">
   <!-- ko if: path.split('=', 2)[1] && path.split('=', 2)[1].charAt(0) == '/' -->
-    <a data-bind="hueLink: '/filebrowser/view=' + $data.path.split('=', 2)[1]" title="${ _('Open') }">
+    <a data-bind="storageContextPopover: { path: $data.path.split('=', 2)[1], offset: { right: 5 }, orientation: 'left' }" title="${ _('Preview') }" href="javascript: void(0);">
       <i class="fa fa-external-link-square"></i>
     </a>
   <!-- /ko -->

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

@@ -451,7 +451,7 @@ ${ workflow.render() }
         <td data-bind="text: label" style="width: 1%; padding-right: 10px" class="no-wrap"></td>
         <td>
           <!-- ko if: type() == '' -->
-          <input type="text" class="filechooser-input" style="width:80%" data-bind="value: value, valueUpdate:'afterkeydown', filechooser: value, filechooserOptions: globalFilechooserOptions, attr: { placeholder: help_text }">
+          <input type="text" class="filechooser-input" style="width: 75%" data-bind="value: value, valueUpdate:'afterkeydown', filechooser: value, filechooserOptions: globalFilechooserOptions, attr: { placeholder: help_text }">
           <!-- /ko -->
           <!-- ko if: type() == 'text' -->
           <input type="text" data-bind="value: value, valueUpdate:'afterkeydown', attr: { placeholder: help_text }" class="input-xlarge"/>