diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 98750d8..ccac296 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # plugin.sh - DevStack plugin.sh dispatch script vitrage-dashboard VITRAGE_DASHBOARD_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd) @@ -5,6 +6,7 @@ VITRAGE_DASHBOARD_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd) function install_vitrage_dashboard { sudo pip install --upgrade ${VITRAGE_DASHBOARD_DIR} cp -a ${VITRAGE_DASHBOARD_DIR}/vitragedashboard/static ${DEST}/horizon/ + cp -a ${VITRAGE_DASHBOARD_DIR}/vitragealarms/static ${DEST}/horizon/ cp -a ${VITRAGE_DASHBOARD_DIR}/vitragedashboard/enabled/* ${DEST}/horizon/openstack_dashboard/enabled/ cp -a ${VITRAGE_DASHBOARD_DIR}/vitrageclient/api/* ${DEST}/horizon/openstack_dashboard/api/ python ${DEST}/horizon/manage.py compress --force @@ -22,7 +24,6 @@ if is_service_enabled vitrage-dashboard; then # Perform installation of service source # no-op : - elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then # Configure after the other layer 1 and 2 services have been configured echo_summary "Installing Vitrage Dashboard" diff --git a/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js b/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js index d609f95..ccf0f1b 100644 --- a/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js +++ b/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js @@ -9,6 +9,8 @@ function AlarmListController($scope, vitrageTopologySrv) { var alarmList = this; + alarmList.alarms = []; + alarmList.ialarms = []; $scope.STATIC_URL = STATIC_URL; alarmList.alarms = []; vitrageTopologySrv.getAlarms('all').then(function(result){ diff --git a/vitragealarms/static/alarms/project/layout/main/alarmList.html b/vitragealarms/static/alarms/project/layout/main/alarmList.html index 9185e73..8ca1798 100644 --- a/vitragealarms/static/alarms/project/layout/main/alarmList.html +++ b/vitragealarms/static/alarms/project/layout/main/alarmList.html @@ -1,20 +1,30 @@
{$ 'TimeStamp' | translate $} | -{$ 'Name' | translate $} | -{$ 'Severity' | translate $} | -{$ 'Type' | translate $} | +{$ 'TimeStamp' | translate $} | +{$ 'Name' | translate $} | +{$ 'Resource Type' | translate $} | +{$ 'Resource Name' | translate $} | +{$ 'Severity' | translate $} | +{$ 'Type' | translate $} | {$ 'RCA' | translate $} |
---|---|---|---|---|---|---|---|---|---|---|
+ |
+ ||||||||||
{$alarm.update_timestamp | date:"h:mm a"$} | {$alarm.name$} | +{$alarm.resource_type$} | +{$alarm.resource_name$} | {$alarm.severity $} | {$alarm.type$} | diff --git a/vitragedashboard/locale/django.pot b/vitragedashboard/locale/django.pot new file mode 100644 index 0000000..e13f72d --- /dev/null +++ b/vitragedashboard/locale/django.pot @@ -0,0 +1,31 @@ +# Translations template for PROJECT. +# Copyright (C) 2016 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR |