From 484c1e65607019fb0cfb76689a865e8877d0e9cb Mon Sep 17 00:00:00 2001 From: Alon Heller Date: Sun, 29 Jan 2017 14:50:10 +0200 Subject: [PATCH] fix $modal after bootstrap upgrade Change-Id: Iac9a0b311dfdf28521f97e5e975c519c288ffb20 --- README.rst | 6 ++---- .../static/dashboard/project/services/modal.service.js | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index a9cedcb..59ac10c 100644 --- a/README.rst +++ b/README.rst @@ -61,7 +61,7 @@ With Horizon pushd ../vitrage-dashboard - ../horizon/tools/with_venv.sh pip install --upgrade . + ../horizon/tools/with_venv.sh pip install -e. cp -a vitragedashboard/enabled/* ../horizon/openstack_dashboard/enabled/ @@ -69,6 +69,4 @@ With Horizon cd python-vitrageclient - sudo pip install -e. - - ../horizon/tools/with_venv.sh pip install --upgrade . \ No newline at end of file + ../horizon/tools/with_venv.sh pip install -e. \ No newline at end of file diff --git a/vitrage_dashboard/dashboard/static/dashboard/project/services/modal.service.js b/vitrage_dashboard/dashboard/static/dashboard/project/services/modal.service.js index a850257..07907d3 100644 --- a/vitrage_dashboard/dashboard/static/dashboard/project/services/modal.service.js +++ b/vitrage_dashboard/dashboard/static/dashboard/project/services/modal.service.js @@ -5,13 +5,13 @@ .module('horizon.dashboard.project.vitrage') .service('modalSrv', ModalSrv); - ModalSrv.$inject = ['$modal']; + ModalSrv.$inject = ['$uibModal']; - function ModalSrv($modal) { + function ModalSrv($uibModal) { var modalInstance = null; function show(modalOptions) { - modalInstance = $modal.open(modalOptions); + modalInstance = $uibModal.open(modalOptions); } function close() {