Skip to content

Commit adf6034

Browse files
author
OpenShift Bot
authored
Merge pull request #1852 from spadgett/catalog-v0.0.31
Merged by openshift-bot
2 parents 860e8a9 + 704c02a commit adf6034

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"angular-utf8-base64": "0.0.5",
4848
"file-saver": "1.3.3",
4949
"origin-web-common": "0.0.41",
50-
"origin-web-catalog": "0.0.30"
50+
"origin-web-catalog": "0.0.31"
5151
},
5252
"devDependencies": {
5353
"angular-mocks": "1.5.11",

dist/scripts/vendor.js

+20-14
Original file line numberDiff line numberDiff line change
@@ -64151,7 +64151,7 @@ a.exports = '<div ng-if="!$ctrl.success && !$ctrl.error">\n <div ng-if="!$ctrl.
6415164151
}, function(a, b) {
6415264152
a.exports = '<bind-service-form service-class="$ctrl.serviceClass.resource"\n service-class-name="$ctrl.serviceClass.name"\n applications="$ctrl.applications"\n form-name="$ctrl.forms.bindForm"\n allow-no-binding="true"\n project-name="$ctrl.projectDisplayName"\n bind-type="$ctrl.bindType"\n app-to-bind="$ctrl.appToBind">\n</bind-service-form>\n';
6415364153
}, function(a, b) {
64154-
a.exports = '<div class="config-top">\n <form name="$ctrl.forms.orderConfigureForm" class="config-form">\n <select-project selected-project="$ctrl.selectedProject" name-taken="$ctrl.nameTaken"></select-project>\n <catalog-parameters\n ng-if="$ctrl.parameterSchema"\n model="$ctrl.parameterData"\n parameter-schema="$ctrl.parameterSchema">\n </catalog-parameters>\n </form>\n <div ng-if="$ctrl.error" class="has-error">\n <span class="help-block">{{$ctrl.error}}</span>\n </div>\n</div>\n';
64154+
a.exports = '<div class="config-top">\n <form name="$ctrl.forms.orderConfigureForm" class="config-form">\n <select-project selected-project="$ctrl.selectedProject" name-taken="$ctrl.nameTaken"></select-project>\n <catalog-parameters\n ng-if="$ctrl.parameterSchema.properties"\n model="$ctrl.parameterData"\n parameter-schema="$ctrl.parameterSchema">\n </catalog-parameters>\n </form>\n <div ng-if="$ctrl.error" class="has-error">\n <span class="help-block">{{$ctrl.error}}</span>\n </div>\n</div>\n';
6415564155
}, function(a, b) {
6415664156
a.exports = '<div class="config-top">\n <div class="select-plans">\n <h3>Select a Plan</h3>\n <div ng-repeat="plan in $ctrl.serviceClass.resource.plans" class="radio">\n <label>\n <input\n type="radio"\n ng-model="$ctrl.planIndex"\n ng-change="$ctrl.selectPlan(plan)"\n value="{{$index}}">\n <span class="plan-name">{{plan.externalMetadata.displayName || plan.name}}</span>\n <!-- TODO: truncate long text -->\n <div ng-if="plan.description">{{plan.description}}</div>\n <!-- TODO: show plan bullets -->\n </label>\n </div>\n </div>\n</div>\n';
6415764157
}, function(a, b) {
@@ -64838,18 +64838,18 @@ function a(a, b) {
6483864838
this.resource = a, this.catalogSrv = b, this.imageUrl = this.getImage(), this.iconClass = this.getIcon(), this.name = this.getName(), this.description = this.getDescription(), this.longDescription = this.getLongDescription(), this.tags = this.getTags();
6483964839
}
6484064840
return a.prototype.getImage = function() {
64841-
return e.get(this.resource, "externalMetadata.imageUrl", "");
64841+
return e.get(this.resource, "externalMetadata.imageUrl") || "";
6484264842
}, a.prototype.getIcon = function() {
64843-
var a = e.get(this.resource, [ "externalMetadata", "console.openshift.io/iconClass" ], "fa fa-clone");
64843+
var a = e.get(this.resource, [ "externalMetadata", "console.openshift.io/iconClass" ]) || "fa fa-clone";
6484464844
return a = -1 !== a.indexOf("icon-") ? "font-icon " + a :a;
6484564845
}, a.prototype.getName = function() {
64846-
return e.get(this.resource, "externalMetadata.displayName", this.resource.metadata.name);
64846+
return e.get(this.resource, "externalMetadata.displayName") || this.resource.metadata.name;
6484764847
}, a.prototype.getDescription = function() {
64848-
return e.get(this.resource, "description", "");
64848+
return e.get(this.resource, "description") || "";
6484964849
}, a.prototype.getLongDescription = function() {
64850-
return e.get(this.resource, "externalMetadata.longDescription", "");
64850+
return e.get(this.resource, "externalMetadata.longDescription") || "";
6485164851
}, a.prototype.getTags = function() {
64852-
return e.get(this.resource, "alphaTags", []);
64852+
return e.get(this.resource, "alphaTags") || [];
6485364853
}, a;
6485464854
}();
6485564855
b.ServiceItem = g;
@@ -65018,15 +65018,18 @@ m.clearValidityWatcher(), m.ctrl.nextTitle = "Create", m.reviewStep.allowed = !0
6501865018
}, this.showResults = function() {
6501965019
m.clearValidityWatcher(), m.ctrl.nextTitle = "Close", m.ctrl.wizardDone = !0, m.createApp();
6502065020
}, this.onProjectUpdate = function() {
65021-
m.isNewProject() ? (m.ctrl.serviceInstances = [], m.updateBindability()) :(m.ctrl.updating = !0, m.ProjectsService.get(m.ctrl.selectedProject.metadata.name).then(e.spread(function(a, b) {
65022-
var c = {
65021+
!m.instancesSupported || m.isNewProject() ? (m.ctrl.serviceInstances = [], m.updateBindability()) :(m.ctrl.updating = !0, m.DataService.list({
6502365022
group:"servicecatalog.k8s.io",
6502465023
resource:"instances"
65025-
};
65026-
m.watches.push(m.DataService.watch(c, b, function(a) {
65024+
}, {
65025+
namespace:m.ctrl.selectedProject.metadata.name
65026+
}, null, {
65027+
errorNotification:!1
65028+
}).then(function(a) {
6502765029
m.ctrl.serviceInstances = e.filter(e.toArray(a.by("metadata.name")), m.isServiceBindable), m.sortServiceInstances(), m.ctrl.updating = !1, m.updateBindability();
65030+
}, function(a) {
65031+
m.Logger.warn("Failed to list instances in namespace " + m.ctrl.selectedProject.metadata.name, a), m.ctrl.updating = !1, m.ctrl.serviceInstances = [], m.updateBindability();
6502865032
}));
65029-
})));
6503065033
}, this.isServiceBindable = function(a) {
6503165034
return m.BindingService.isServiceBindable(a, m.ctrl.serviceClasses);
6503265035
}, this.$scope = a, this.$filter = b, this.$location = c, this.$q = d, this.BuilderAppService = f, this.ProjectsService = g, this.DataService = h, this.APIService = i, this.BindingService = j, this.Logger = k, this.ctrl.serviceToBind = null, this.ctrl.showPodPresets = e.get(l, [ "ENABLE_TECH_PREVIEW_FEATURE", "pod_presets" ], !1);
@@ -65060,7 +65063,10 @@ prevEnabled:!1,
6506065063
onShow:this.showResults
6506165064
}, this.ctrl.steps = [ this.configStep, this.bindStep, this.reviewStep ], this.ctrl.versions = this.getVersions(), this.ctrl.istag = e.first(this.ctrl.versions), this.ctrl.nameMaxLength = 24, this.ctrl.namePattern = /^[a-z]([-a-z0-9]*[a-z0-9])?$/, this.ctrl.repositoryPattern = /^[a-z][a-z0-9+.-@]*:(\/\/)?[0-9a-z_-]+/, this.ctrl.wizardDone = !1, this.ctrl.serviceToBind = null, this.ctrl.updating = !1, this.ctrl.serviceInstances = [], this.selectedProjectWatch = this.$scope.$watch(function() {
6506265065
return a.ctrl.selectedProject;
65063-
}, this.onProjectUpdate), this.getServiceClasses();
65066+
}, this.onProjectUpdate), this.getServiceClasses(), this.instancesSupported = !!this.APIService.apiInfo({
65067+
group:"servicecatalog.k8s.io",
65068+
resource:"instances"
65069+
});
6506465070
}, a.prototype.closePanel = function() {
6506565071
d.isFunction(this.ctrl.handleClose) && this.ctrl.handleClose();
6506665072
}, a.prototype.$onDestroy = function() {
@@ -65594,7 +65600,7 @@ return a.resizeExpansion(!1);
6559465600
maxWait:250
6559565601
}), d.element(window).bind("resize", this.debounceResize), f(window).on("resize.services", this.debounceResize), this.removeFilterListener = this.$rootScope.$on("filter-catalog-items", function(b, c) {
6559665602
var e = d.copy(a.keywordFilterField);
65597-
e.value = c.searchText, a.ctrl.currentFilter = a.ctrl.currentSubFilter = "all", a.filterChange([ e ]);
65603+
e.value = c.searchText, a.ctrl.currentFilter = a.ctrl.currentSubFilter = "all", a.ctrl.mobileView = "subcategories", a.filterChange([ e ]);
6559865604
}), this.ctrl.filterConfig = {
6559965605
fields:[ this.keywordFilterField ],
6560065606
resultsCount:0,

0 commit comments

Comments
 (0)