Selaa lähdekoodia

AMBARI-7412. Slider View: Alerts keep jumping in a Slider App (alexantonenko)

Alex Antonenko 10 vuotta sitten
vanhempi
commit
5da5019a81

+ 1 - 0
contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js

@@ -59,6 +59,7 @@ App.SliderAppsMapper = App.Mapper.createWithMixins(App.RunPeriodically, {
           lastCheck: alert.last_status_time
         });
       });
+      alerts = alerts.sortBy('title');
       App.SliderApp.store.pushMany('sliderAppAlert', alerts);
     }
     return alerts.mapProperty('id');