UNPKG

pip-webui

Version:

HTML5 UI for LOB applications

39 lines (25 loc) 933 B
/** * @file No connection error controller * @copyright Digital Living Software Corp. 2014-2016 */ /* global angular */ (function () { 'use strict'; var thisModule = angular.module('pipErrors.NoConnection', []); thisModule.controller('pipErrorNoConnectionController', function ($scope, $state, $rootScope, $window, pipAppBar) { $rootScope.$routing = false; appHeader(); $scope.error = $state && $state.params && $state.params.error ? $state.params.error : {}; $scope.onRetry = onRetry; return; function onRetry() { $window.history.back(); }; function appHeader() { pipAppBar.showMenuNavIcon(); pipAppBar.showShadow(); pipAppBar.showTitleBreadcrumb('ERROR_RESPONDING_TITLE', []); pipAppBar.showLocalActions(null, []); }; }); })();