Skip to content

Commit

Permalink
bump(github.com/openshift/origin-web-console): c971f7568a31038543a4ec…
Browse files Browse the repository at this point in the history
…3f26188ca563e6e714
  • Loading branch information
OpenShift Bot committed Nov 1, 2016
1 parent 9bc4696 commit 8ecb3f5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkg/assets/bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -8676,7 +8676,7 @@ return {
name:b,
value:a
};
}), a.systemLabels.push({
}), L() && a.systemLabels.push({
name:"app",
value:a.template.metadata.name
});
Expand Down Expand Up @@ -8742,7 +8742,7 @@ type:"error"
});
d.length ? (a.disableInputs = !1, a.alerts = c) :c.length ? (J(c), a.disableInputs = !1) :I();
};
if (a.createFromTemplate = function() {
a.createFromTemplate = function() {
a.disableInputs = !0;
var b = s.mapEntries(s.compactEntries(a.labels)), c = s.mapEntries(s.compactEntries(a.systemLabels));
a.template.labels = _.extend(c, b), d.create("processedtemplates", null, a.template, f).then(function(b) {
Expand All @@ -8756,19 +8756,23 @@ message:"An error occurred processing the template.",
details:c
};
});
}, v) d.get("templates", u, {
};
var L = function() {
return !_.get(a.template, "labels.app") && !_.some(a.template.objects, "metadata.labels.app");
};
if (v) d.get("templates", u, {
namespace:v || a.projectName
}).then(function(b) {
a.template = b, E(), a.breadcrumbs[3].title = n("displayName")(b);
}, function() {
m.toErrorPage("Cannot create from template: the specified template could not be retrieved.");
}); else {
if (a.template = r.getTemplate(), _.isEmpty(a.template)) {
var L = URI("error").query({
var M = URI("error").query({
error:"not_found",
error_description:"Template wasn't found in cache."
}).toString();
j.url(L);
j.url(M);
}
r.clearTemplate(), E();
}
Expand Down

0 comments on commit 8ecb3f5

Please sign in to comment.