浏览代码

AMBARI-7416. Slider View: Do not show Flex action when app is stopped (alexantonenko)

Alex Antonenko 10 年之前
父节点
当前提交
d018aa6a1b

+ 1 - 1
contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js

@@ -56,7 +56,7 @@ App.SliderAppController = Ember.ObjectController.extend(App.AjaxErrorHandler, {
         confirm: true
       });
     }
-    if ('FINISHED' !== status) {
+    if ('RUNNING' == status) {
       actions.push({
         title: 'Flex',
         action: 'flex',

+ 3 - 3
contrib/views/slider/src/main/resources/ui/app/styles/application.less

@@ -595,6 +595,9 @@ select {
         border-width: 0;
       }
     }
+    td:nth-child(2) span{
+      word-break: break-all;
+    }
   }
   .panel-heading {
     font-weight: 700;
@@ -604,9 +607,6 @@ select {
     td:first-child {
       text-align: right;
     }
-    span{
-      word-break: break-all;
-    }
   }
   .panel-components {
     .status {