(function() { 'use strict'; angular .module('harbor.layout.index') .controller('IndexController', IndexController); IndexController.$inject = ['$scope', '$filter', 'trFilter']; function IndexController($scope, $filter, trFilter) { $scope.subsHeight = 110; $scope.subsSection = 32; $scope.subsSubPane = 226; var vm = this; vm.customBodyHeight = {'height': '180px'}; vm.viewAll = viewAll; function viewAll() { var indexDesc = $filter('tr')('index_desc', []); var indexDesc1 = $filter('tr')('index_desc_1', []); var indexDesc2 = $filter('tr')('index_desc_2', []); var indexDesc3 = $filter('tr')('index_desc_3', []); var indexDesc4 = $filter('tr')('index_desc_4', []); var indexDesc5 = $filter('tr')('index_desc_5', []); vm.modalTitle = $filter('tr')('harbor_intro_title'); vm.modalMessage = '

'+ indexDesc + '

' + ''; vm.contentType = 'text/html'; vm.confirmOnly = true; $scope.$broadcast('showDialog', true); vm.action = function() { $scope.$broadcast('showDialog', false); } } //Error message dialog handler for index. $scope.$on('modalTitle', function(e, val) { vm.modalTitle = val; }); $scope.$on('modalMessage', function(e, val) { vm.modalMessage = val; }); $scope.$on('raiseError', function(e, val) { if(val) { vm.action = function() { $scope.$broadcast('showDialog', false); }; vm.contentType = 'text/plain'; vm.confirmOnly = true; $scope.$broadcast('showDialog', true); } }); } })();