From e504c116237b9209a1a80246c87f2c2bd6e1299a Mon Sep 17 00:00:00 2001 From: sslypushenko Date: Thu, 27 Aug 2015 16:11:42 +0300 Subject: [PATCH] Add confirmation dialogs Confirmation dialogs are provided by this module http://schlogen.github.io/angular-confirm/ Closes-Bug: #1487060 Change-Id: If69652bca0b084e9c2335d9ccf256788f97dbee1 --- bower.json | 1 + refstack-ui/app/app.js | 2 +- refstack-ui/app/components/profile/showPubKeyModal.html | 3 ++- refstack-ui/app/components/results-report/resultsReport.html | 4 ++-- refstack-ui/app/index.html | 1 + refstack-ui/tests/karma.conf.js | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bower.json b/bower.json index 951db02f..7744bf47 100644 --- a/bower.json +++ b/bower.json @@ -8,6 +8,7 @@ "angular-resource": "1.3.15", "angular-bootstrap": "0.12.1", "angular-busy": "4.1.3", + "angular-confirm-modal": "1.1.0", "bootstrap": "3.3.2" }, "devDependencies": { diff --git a/refstack-ui/app/app.js b/refstack-ui/app/app.js index db76ea8c..524deef0 100644 --- a/refstack-ui/app/app.js +++ b/refstack-ui/app/app.js @@ -1,6 +1,6 @@ /** Main app module where application dependencies are listed. */ var refstackApp = angular.module('refstackApp', [ - 'ui.router', 'ui.bootstrap', 'cgBusy', 'ngResource']); + 'ui.router', 'ui.bootstrap', 'cgBusy', 'ngResource', 'angular-confirm']); /** * Handle application routing. Specific templates and controllers will be diff --git a/refstack-ui/app/components/profile/showPubKeyModal.html b/refstack-ui/app/components/profile/showPubKeyModal.html index 27f4862a..d2dbf2f2 100644 --- a/refstack-ui/app/components/profile/showPubKeyModal.html +++ b/refstack-ui/app/components/profile/showPubKeyModal.html @@ -5,6 +5,7 @@ \ No newline at end of file diff --git a/refstack-ui/app/components/results-report/resultsReport.html b/refstack-ui/app/components/results-report/resultsReport.html index 6e75e597..a0ae903f 100644 --- a/refstack-ui/app/components/results-report/resultsReport.html +++ b/refstack-ui/app/components/results-report/resultsReport.html @@ -17,9 +17,9 @@
- + - +
diff --git a/refstack-ui/app/index.html b/refstack-ui/app/index.html index 0a27a51e..5fed5cd7 100644 --- a/refstack-ui/app/index.html +++ b/refstack-ui/app/index.html @@ -33,6 +33,7 @@ + diff --git a/refstack-ui/tests/karma.conf.js b/refstack-ui/tests/karma.conf.js index 38ea1d4b..5fcef4f4 100644 --- a/refstack-ui/tests/karma.conf.js +++ b/refstack-ui/tests/karma.conf.js @@ -14,7 +14,7 @@ module.exports = function (config) { 'app/assets/lib/angular-bootstrap/ui-bootstrap-tpls.min.js', 'app/assets/lib/angular-busy/dist/angular-busy.min.js', 'app/assets/lib/angular-resource/angular-resource.min.js', - + 'app/assets/lib/angular-confirm-modal/angular-confirm.js', // JS files. 'app/app.js', 'app/components/**/*.js',