tech: began reworking alerting list to mobx

This commit is contained in:
Torkel Ödegaard
2017-12-28 18:49:33 +01:00
parent 8fd8853770
commit 4c1a67c34e
8 changed files with 170 additions and 26 deletions

View File

@@ -1,6 +1,7 @@
import './dashboard_loaders';
import './ReactContainer';
import { ServerStats } from 'app/containers/ServerStats/ServerStats';
import { AlertRuleList } from 'app/containers/AlertRuleList/AlertRuleList';
/** @ngInject **/
export function setupAngularRoutes($routeProvider, $locationProvider) {
@@ -225,6 +226,12 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
controller: 'AlertListCtrl',
controllerAs: 'ctrl',
})
.when('/alerting/list2', {
template: '<react-container />',
resolve: {
component: () => AlertRuleList,
},
})
.when('/alerting/notifications', {
templateUrl: 'public/app/features/alerting/partials/notifications_list.html',
controller: 'AlertNotificationsListCtrl',