diff --git a/index.html b/index.html index 7e25385..209b02b 100644 --- a/index.html +++ b/index.html @@ -16,13 +16,13 @@ - + - + - + diff --git a/package.json b/package.json index 4ad20bb..4e6b1b5 100644 --- a/package.json +++ b/package.json @@ -32,27 +32,29 @@ "gulp-replace": "^1.0.0", "gulp-uglify": "^3.0.1", "jquery": "^3.3.1", - "pump": "^3.0.0" + "pump": "^3.0.0", + "foca-modal": "git+https://debo.suite.repo/modulos-npm/foca-modal.git" }, "devDependencies": { - "angular": "^1.7.4", + "angular": "^1.7.5", "bootstrap": "^4.1.3", "font-awesome": "^4.7.0", - "gulp": "3.9.1", - "gulp-angular-templatecache": "2.2.2", - "gulp-clean": "0.4.0", - "gulp-concat": "2.6.1", - "gulp-connect": "5.6.1", - "gulp-htmlmin": "5.0.1", - "gulp-jshint": "2.1.0", - "gulp-rename": "1.4.0", - "gulp-replace": "1.0.0", - "gulp-uglify": "3.0.1", - "jasmine-core": "^3.2.1", + "gulp": "^3.9.1", + "gulp-angular-templatecache": "^2.2.2", + "gulp-clean": "^0.4.0", + "gulp-concat": "^2.6.1", + "gulp-connect": "^5.6.1", + "gulp-htmlmin": "^5.0.1", + "gulp-jshint": "^2.1.0", + "gulp-rename": "^1.4.0", + "gulp-replace": "^1.0.0", + "gulp-uglify": "^3.0.1", + "jasmine-core": "^3.3.0", "jquery": "^3.3.1", - "jshint": "2.9.6", + "jshint": "^2.9.6", "pre-commit": "^1.2.2", - "pump": "3.0.0", - "ui-bootstrap4": "^3.0.4" + "pump": "^3.0.0", + "ui-bootstrap4": "^3.0.5", + "foca-modal": "git+https://debo.suite.repo/modulos-npm/foca-modal.git" } } diff --git a/src/js/controller.js b/src/js/controller.js index 6e149f7..ef4758b 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -1,7 +1,7 @@ angular.module('focaBotoneraPrincipal') .controller('focaBotoneraPrincipalController', [ - '$scope', '$location', - function($scope, $location) { + '$scope', '$location', '$cookies', 'focaModalService', + function($scope, $location, $cookies, focaModalService) { // TODO: Tomar estos datos desde el servicio $scope.botones = [ { @@ -122,5 +122,10 @@ angular.module('focaBotoneraPrincipal') $scope.logout = function() { $location.path('/logout'); }; + + $scope.showTerminal = function() { + var key = $cookies.get('terminalKey'); + focaModalService.alert('SU TERMINAL ES: ' + key); + }; } ]); diff --git a/src/views/foca-botonera-principal.html b/src/views/foca-botonera-principal.html index 7215330..30b12f9 100644 --- a/src/views/foca-botonera-principal.html +++ b/src/views/foca-botonera-principal.html @@ -5,7 +5,7 @@
-
+
@@ -22,6 +22,19 @@ + + + + + +