@@ -6395,26 +6395,28 @@ e.editAvailable = n && v(e.serviceInstance) && !_.get(e.serviceInstance, "metada
6395
6395
}, S = function() {
6396
6396
e.parameterFormDefinition = angular.copy(_.get(e.plan, "spec.externalMetadata.schemas.service_instance.update.openshift_form_definition")), e.parameterSchema = _.get(e.plan, "spec.instanceCreateParameterSchema"), b();
6397
6397
}, w = function() {
6398
- !e.serviceInstance || e.serviceClass || m || (m = d.fetchServiceClassForInstance(e.serviceInstance).then(function(t) {
6399
- e.serviceClass = t, e.displayName = g(e.serviceInstance, e.serviceClass), y(), m = null, i.getServicePlansForServiceClass(e.serviceClass).then(function(t) {
6398
+ i.getServicePlansForServiceClass(e.serviceClass).then(function(t) {
6400
6399
t = t.by("metadata.name");
6401
6400
var n = _.get(e.serviceInstance, "spec.clusterServicePlanRef.name");
6402
6401
e.servicePlans = _.reject(t, function(e) {
6403
6402
return _.get(e, "status.removedFromBrokerCatalog") && e.metadata.name !== n;
6404
6403
}), e.plan = t[n], S(), C();
6405
6404
});
6405
+ }, k = function() {
6406
+ e.serviceInstance && !m && (e.serviceClass ? w() : m = d.fetchServiceClassForInstance(e.serviceInstance).then(function(t) {
6407
+ e.serviceClass = t, e.displayName = g(e.serviceInstance, e.serviceClass), y(), m = null, w();
6406
6408
}));
6407
- }, k = function(t, n) {
6409
+ }, P = function(t, n) {
6408
6410
e.loaded = !0, e.serviceInstance = t, "DELETED" === n && (e.alerts.deleted = {
6409
6411
type: "warning",
6410
6412
message: "This provisioned service has been deleted."
6411
- }), w (), b(), C();
6413
+ }), k (), b(), C();
6412
6414
};
6413
6415
l.get(n.project).then(_.spread(function(a, o) {
6414
6416
e.project = a, e.projectContext = o, s.get(e.serviceInstancesVersion, n.instance, o, {
6415
6417
errorNotification: !1
6416
6418
}).then(function(t) {
6417
- k (t), p.push(s.watchObject(e.serviceInstancesVersion, n.instance, o, k )), p.push(s.watch(h, o, function(n) {
6419
+ P (t), p.push(s.watchObject(e.serviceInstancesVersion, n.instance, o, P )), p.push(s.watch(h, o, function(n) {
6418
6420
var a = n.by("metadata.name");
6419
6421
e.bindings = r.getBindingsForResource(a, t);
6420
6422
}));
0 commit comments