summaryrefslogtreecommitdiffstats
path: root/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js')
-rw-r--r--vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js b/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
index 6b2dde830..2d968f757 100644
--- a/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
+++ b/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
@@ -34,11 +34,16 @@ define(modules, function(vpp) {
$scope.view_path = 'src/app/vpp/views/';
$scope.mainView = "inventory";
+ $scope.selectedVpp = null;
$scope.setMainView = function(viewName) {
$scope.mainView = viewName;
};
+ $scope.selectVpp = function(vpp) {
+ $scope.selectedVpp = vpp;
+ $scope.$broadcast('RELOAD_SELECTED_VPP');
+ };
}]);