Skip to content

Commit 6df8e4c

Browse files
committed
prevent secret modal from closing on outside click
This patch makes the "backdrop" for the "create new secret" modal static, so that the modal is not accidentally closed if a click is made outside of it. This enforces the use of the "cancel" button on the modal in order to close it.
1 parent 9f649e9 commit 6df8e4c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/scripts/directives/oscSecrets.js

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ angular.module("openshiftConsole")
5252
$scope.newSecret = {};
5353
var modalInstance = $uibModal.open({
5454
animation: true,
55+
backdrop: 'static',
5556
templateUrl: 'views/modals/create-secret.html',
5657
controller: 'CreateSecretModalController',
5758
scope: $scope

dist/scripts/scripts.js

+1
Original file line numberDiff line numberDiff line change
@@ -9223,6 +9223,7 @@ name:""
92239223
b.newSecret = {};
92249224
var e = a.open({
92259225
animation:!0,
9226+
backdrop:"static",
92269227
templateUrl:"views/modals/create-secret.html",
92279228
controller:"CreateSecretModalController",
92289229
scope:b

0 commit comments

Comments
 (0)