@@ -13174,7 +13174,7 @@ appliedFilters: [],
13174
13174
onFilterChange: g
13175
13175
}, n.project || (b.showProjectName = !0);
13176
13176
}, b.$onChanges = function(e) {
13177
- e.template && b.template && (d(), b.iconClass = l(), b.image = u(), b.docUrl = S(b.template, "template.openshift.io/documentation-url"), b.supportUrl = S(b.template, "template.openshift.io/support-url")), e.useProjectTemplate && d();
13177
+ e.template && b.template && (d(), b.iconClass = l(), b.image = u(), b.docUrl = S(b.template, "template.openshift.io/documentation-url"), b.supportUrl = S(b.template, "template.openshift.io/support-url"), b.vendor = S(b.template, "template.openshift.io/provider-display-name") ), e.useProjectTemplate && d();
13178
13178
}, e.$on("templateInstantiated", function(e, t) {
13179
13179
b.selectedProject = t.project, b.currentStep = b.resultsStep.label;
13180
13180
}), b.$onDestroy = function() {
@@ -13187,7 +13187,7 @@ _.isFunction(e) && e();
13187
13187
}, b.onProjectSelected = function(t) {
13188
13188
b.selectedProject = t, b.configStep.valid = e.$ctrl.form.$valid && b.selectedProject;
13189
13189
}, b.templateSelected = function(e) {
13190
- b.selectedTemplate = e, b.template = _.get(e, "resource"), b.selectStep.valid = !!e, b.iconClass = l(), b.image = u();
13190
+ b.selectedTemplate = e, b.template = _.get(e, "resource"), b.selectStep.valid = !!e, b.iconClass = l(), b.image = u(), b.docUrl = S(b.template, "template.openshift.io/documentation-url"), b.supportUrl = S(b.template, "template.openshift.io/support-url"), b.vendor = S(b.template, "template.openshift.io/provider-display-name") ;
13191
13191
}, b.templateProjectChange = function() {
13192
13192
b.templateProjectName = _.get(b.templateProject, "metadata.name"), b.catalogItems = {}, b.templateSelected(), a.getProjectCatalogItems(b.templateProjectName, !1, !0).then(_.spread(function(e, t) {
13193
13193
b.catalogItems = e, b.totalCount = b.catalogItems.length, g(), t && i.addNotification({
@@ -13241,30 +13241,34 @@ templateUrl: "views/directives/deploy-image-dialog.html"
13241
13241
angular.module("openshiftConsole").component("fromFileDialog", {
13242
13242
controller: [ "$scope", "$timeout", "$routeParams", "$filter", "DataService", function(e, t, n, a, r) {
13243
13243
function o() {
13244
- var e = _.get(i , "template.metadata.annotations.iconClass", "fa fa-clone");
13244
+ var e = _.get(s , "template.metadata.annotations.iconClass", "fa fa-clone");
13245
13245
return -1 !== e.indexOf("icon-") ? "font-icon " + e : e;
13246
13246
}
13247
- var i = this;
13248
- i.$onInit = function() {
13249
- i.alerts = {}, i.loginBaseUrl = r.openshiftAPIBaseUrl(), n.project || (i.showProjectName = !0);
13250
- }, i.importFile = function() {
13247
+ function i() {
13248
+ var e = _.get(s, "template.metadata.annotations.iconClass", "fa fa-clone");
13249
+ return l(e);
13250
+ }
13251
+ var s = this, c = a("annotation"), l = a("imageForIconClass");
13252
+ s.$onInit = function() {
13253
+ s.alerts = {}, s.loginBaseUrl = r.openshiftAPIBaseUrl(), n.project || (s.showProjectName = !0);
13254
+ }, s.importFile = function() {
13251
13255
e.$broadcast("importFileFromYAMLOrJSON");
13252
- }, i .instantiateTemplate = function() {
13256
+ }, s .instantiateTemplate = function() {
13253
13257
e.$broadcast("instantiateTemplate");
13254
13258
}, e.$on("fileImportedFromYAMLOrJSON", function(e, n) {
13255
- i .selectedProject = n.project, i .template = n.template, i .iconClass = o(), i .name = "YAML / JSON", t(function() {
13256
- i .currentStep = i .template ? "Template Configuration" : "Results";
13259
+ s .selectedProject = n.project, s .template = n.template, s .iconClass = o(), s.image = i(), s.vendor = c(n.template, "template.openshift.io/provider-display-name"), s.docUrl = c(s.template, "template.openshift.io/documentation-url"), s.supportUrl = c(s.template, "template.openshift.io/support-url"), s .name = "YAML / JSON", t(function() {
13260
+ s .currentStep = s .template ? "Template Configuration" : "Results";
13257
13261
}, 0);
13258
13262
}), e.$on("templateInstantiated", function(e, t) {
13259
- i .selectedProject = t.project, i .name = a("displayName")(i .template), i .currentStep = "Results";
13260
- }), i .close = function() {
13261
- i .template = null;
13262
- var e = i .onDialogClosed();
13263
- return _.isFunction(e) && e(), i .wizardDone = !1, !0;
13264
- }, i .stepChanged = function(e) {
13265
- "results" === e.stepId ? (i .nextButtonTitle = "Close", i .wizardDone = !0) : i .nextButtonTitle = "Create";
13266
- }, i .currentStep = "YAML / JSON", i .nextCallback = function(e) {
13267
- return "file" === e.stepId ? (i .importFile(), !1) : "template" === e.stepId ? (i .instantiateTemplate(), !1) : "results" !== e.stepId || (i .close(), !1);
13263
+ s .selectedProject = t.project, s .name = a("displayName")(s .template), s .currentStep = "Results";
13264
+ }), s .close = function() {
13265
+ s .template = null;
13266
+ var e = s .onDialogClosed();
13267
+ return _.isFunction(e) && e(), s .wizardDone = !1, !0;
13268
+ }, s .stepChanged = function(e) {
13269
+ "results" === e.stepId ? (s .nextButtonTitle = "Close", s .wizardDone = !0) : s .nextButtonTitle = "Create";
13270
+ }, s .currentStep = "YAML / JSON", s .nextCallback = function(e) {
13271
+ return "file" === e.stepId ? (s .importFile(), !1) : "template" === e.stepId ? (s .instantiateTemplate(), !1) : "results" !== e.stepId || (s .close(), !1);
13268
13272
};
13269
13273
} ],
13270
13274
controllerAs: "$ctrl",
0 commit comments