Преглед изворни кода

[oozie] Support for logs link on widgets

Enrico Berti пре 10 година
родитељ
комит
560f393a25

+ 1 - 1
apps/oozie/src/oozie/static/oozie/js/workflow-editor.ko.js

@@ -1196,6 +1196,6 @@ var ExtendedWidget = function (params) {
   self.ooziePropertiesExpanded = ko.observable(false);
   self.status = ko.observable("");
   self.progress = ko.observable(0);
-  self.logs = ko.observable("");
+  self.logsURL = ko.observable("");
   return self;
 }

+ 4 - 0
apps/oozie/src/oozie/templates/editor2/common_workflow.mako

@@ -214,6 +214,10 @@
 
       <span data-bind="editable: name, editableOptions: {enabled: $root.isEditing(), placement: 'right'}, attr: {'title': id().slice(0, 4)}"></span>
 
+      <!-- ko if: logsURL() != '' -->
+        <a class="pull-right pointer" data-bind="click: function(){ location.href = logsURL(); }"><i class="fa fa-tasks"></i></a>
+      <!-- /ko -->
+
       <!-- ko if: widgetType() == 'decision-widget' -->
         <div class="inline pull-right" data-bind="visible: $root.isEditing() && $root.workflow.getNodeById(id()) && $root.workflow.getNodeById(id()).children().length <= 1 && ! oozieExpanded() && ! ooziePropertiesExpanded()">
           <a href="javascript:void(0)" data-bind="click: function(w){addActionDemiModalFieldCancel();$root.removeWidget(w);}"><i class="fa fa-times"></i></a>