-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not attempt service instance deletion if it has bindings
Fixes #2149
- Loading branch information
1 parent
1dae20b
commit b5dcf95
Showing
6 changed files
with
207 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use strict'; | ||
/* jshint unused: false */ | ||
|
||
/** | ||
* @ngdoc function | ||
* @name openshiftConsole.controller:WarningModalController | ||
* @description | ||
* # WarningModalController | ||
* Controller of the openshiftConsole | ||
*/ | ||
angular.module('openshiftConsole') | ||
.controller('WarningModalController', function($scope, | ||
$uibModalInstance, | ||
modalConfig) { | ||
// content supplied in the following forms: | ||
// heading: modalConfig.title | ||
// content: strongMessage (strong text) | ||
// content: modalConfig.message (plain text ONLY, no user input) | ||
// content: modalConfig.messageMarkup (pre-sanitized, see _.escape() or _.template('<%- %>') ) | ||
// button: closeButtonText | ||
_.extend($scope, modalConfig); | ||
|
||
$scope.close = function() { | ||
$uibModalInstance.dismiss('cancel'); | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="modal-resource-action"> | ||
<div class="modal-body"> | ||
<h1> | ||
<span class="pficon pficon-warning-triangle-o"></span> | ||
{{title}} | ||
</h1> | ||
<p class="strong" ng-if="strongMessage">{{strongMessage}}</p> | ||
<p ng-if="message">{{message}}</p> | ||
<p ng-if="messageMarkup" ng-bind-html="messageMarkup"></p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn btn-lg btn-default" type="button" ng-click="close()">{{closeButtonText || 'Close'}}</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.