@@ -12490,7 +12490,7 @@ templateUrl: "views/directives/bind-service.html"
12490
12490
}(), function() {
12491
12491
angular.module("openshiftConsole").component("unbindService", {
12492
12492
controller: [ "$scope", "$filter", "DataService", function(e, t, n) {
12493
- var a, r, o = this, i = t("serviceInstanceDisplayName "), s = function() {
12493
+ var a, r, o = this, i = t("enableTechPreviewFeature "), s = t("serviceInstanceDisplayName"), c = function() {
12494
12494
var e = o.selectedBinding.metadata.name;
12495
12495
o.unboundApps = o.appsForBinding(e), n.delete({
12496
12496
group: "servicecatalog.k8s.io",
@@ -12500,30 +12500,30 @@ propagationPolicy: null
12500
12500
}).then(_.noop, function(e) {
12501
12501
o.error = e;
12502
12502
});
12503
- }, c = function() {
12503
+ }, l = function() {
12504
12504
var t = _.head(o.steps);
12505
12505
t.valid = !1, a = e.$watch("ctrl.selectedBinding", function(e) {
12506
12506
t.valid = !!e;
12507
12507
});
12508
- }, l = function() {
12509
- a && (a(), a = void 0);
12510
12508
}, u = function() {
12511
- o.nextTitle = "Delete", c( );
12509
+ a && (a(), a = void 0 );
12512
12510
}, d = function() {
12513
- o.nextTitle = "Close", o.wizardComplete = !0, s(), l();
12511
+ o.nextTitle = "Delete", l();
12512
+ }, m = function() {
12513
+ o.nextTitle = "Close", o.wizardComplete = !0, c(), u();
12514
12514
};
12515
12515
o.$onInit = function() {
12516
- var e = "ServiceInstance" === o.target.kind ? "Applications" : "Services" ;
12517
- o. displayName = i (o.target), o.steps = [ {
12516
+ var e;
12517
+ e = "ServiceInstance" === o.target.kind ? i("pod_presets") ? "Applications" : "Bindings" : "Services", o. displayName = s (o.target), o.steps = [ {
12518
12518
id: "deleteForm",
12519
12519
label: e,
12520
12520
view: "views/directives/bind-service/delete-binding-select-form.html",
12521
- onShow: u
12521
+ onShow: d
12522
12522
}, {
12523
12523
id: "results",
12524
12524
label: "Results",
12525
12525
view: "views/directives/bind-service/delete-binding-result.html",
12526
- onShow: d
12526
+ onShow: m
12527
12527
} ], r = {
12528
12528
namespace: _.get(o.target, "metadata.namespace")
12529
12529
};
@@ -12532,7 +12532,7 @@ return _.get(o.applicationsByBinding, e);
12532
12532
}, o.closeWizard = function() {
12533
12533
_.isFunction(o.onClose) && o.onClose();
12534
12534
}, o.$onDestroy = function() {
12535
- l ();
12535
+ u ();
12536
12536
};
12537
12537
} ],
12538
12538
controllerAs: "ctrl",
0 commit comments