From 26c953a607d42cfd31bfadd0792e7882e8ba341c Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Wed, 25 Oct 2017 17:47:28 -0400 Subject: [PATCH] DEV Dist Update --- dist/scripts/scripts.js | 248 ++++++++++++++++++++-------------------- dist/styles/main.css | 2 +- 2 files changed, 125 insertions(+), 125 deletions(-) diff --git a/dist/scripts/scripts.js b/dist/scripts/scripts.js index 7206c361d8..593b3ce5e3 100644 --- a/dist/scripts/scripts.js +++ b/dist/scripts/scripts.js @@ -1,6 +1,6 @@ "use strict"; -function OverviewController(e, t, n, a, r, o, i, s, c, l, u, d, m, p, f, g, v, h, y, b, C, S, w, k, j, P) { +function OverviewController(e, t, n, a, r, o, i, s, c, l, u, d, m, p, f, g, v, h, y, b, C, S, w, k, P, j) { var R = this, I = t("isIE")(); e.projectName = n.project, R.catalogLandingPageEnabled = !l.DISABLE_SERVICE_CATALOG_LANDING_PAGE; var E, N, T = t("annotation"), D = t("canI"), A = t("buildConfigForBuild"), B = t("deploymentIsInProgress"), L = t("imageObjectRef"), U = t("isJenkinsPipelineStrategy"), O = t("isNewerResource"), F = t("label"), x = t("podTemplate"), V = r.getPreferredVersion("servicebindings"), M = r.getPreferredVersion("clusterserviceclasses"), q = r.getPreferredVersion("serviceinstances"), z = r.getPreferredVersion("clusterserviceplans"), H = {}, G = {}, K = {}, W = R.state = { @@ -66,7 +66,7 @@ return o.groupByApp(e, "metadata.name"); }, ne = function(e) { var t = null; return _.each(e, function(e) { -t = t ? j.getPreferredDisplayRoute(t, e) : e; +t = t ? P.getPreferredDisplayRoute(t, e) : e; }), t; }, ae = _.debounce(function() { e.$evalAsync(function() { @@ -188,19 +188,19 @@ _.each(R.deploymentConfigs, _e); }, ke = function(e) { var t = Y(e); return t ? _.get(R, [ "replicaSetsByDeploymentUID", t ]) : {}; -}, je = function(e) { +}, Pe = function(e) { var t = k.getPausedDeploymentAlerts(e), n = ke(e); _.each(n, function(e) { var n = he(e); _.assign(t, n); }), ve(e, t); -}, Pe = function() { -_.each(R.deployments, je); +}, je = function() { +_.each(R.deployments, Pe); }, Re = function() { be(R.replicationControllers), be(R.replicaSets), be(R.statefulSets), be(R.monopods); }, Ie = _.debounce(function() { e.$evalAsync(function() { -Re(), we(), Pe(); +Re(), we(), je(); }); }, 500), Ee = function(e) { _.isEmpty(e) || (v.addLabelSuggestionsFromResources(e, H), "pipeline" !== R.viewBy && v.setLabelSuggestions(H)); @@ -245,7 +245,7 @@ return Le(e, n); }), r = d.sortByRevision(a); R.replicaSetsByDeploymentUID[t] = r, R.currentByDeploymentUID[t] = _.head(r); } -}), R.vanillaReplicaSets = _.sortBy(R.replicaSetsByDeploymentUID[""], "metadata.name"), Pe()); +}), R.vanillaReplicaSets = _.sortBy(R.replicaSetsByDeploymentUID[""], "metadata.name"), je()); }, Oe = {}, Fe = function(e) { e && W.allServices && _.each(e, function(e) { var t = [], n = Y(e), a = x(e); @@ -262,8 +262,8 @@ var e = [ R.deploymentConfigs, R.vanillaReplicationControllers, R.deployments, R _.each(e, Fe), ae(); } }, Ve = function() { -var e = j.groupByService(R.routes, !0); -W.routesByService = _.mapValues(e, j.sortRoutesByScore), ae(); +var e = P.groupByService(R.routes, !0); +W.routesByService = _.mapValues(e, P.sortRoutesByScore), ae(); }, Me = function() { W.hpaByResource = m.groupHPAs(R.horizontalPodAutoscalers); }, qe = function(e) { @@ -385,7 +385,7 @@ R.pods = e.by("metadata.name"), De(), a(), Ie(), Fe(R.monopods), be(R.monopods), })), at.push(u.watch("replicationcontrollers", n, function(e) { R.replicationControllers = e.by("metadata.name"), Be(), Fe(R.vanillaReplicationControllers), Fe(R.monopods), be(R.vanillaReplicationControllers), Ee(R.vanillaReplicationControllers), tt(), me(), h.log("replicationcontrollers (subscribe)", R.replicationControllers); })), at.push(u.watch("deploymentconfigs", n, function(e) { -R.deploymentConfigs = e.by("metadata.name"), Be(), Fe(R.deploymentConfigs), Fe(R.vanillaReplicationControllers), Ee(R.deploymentConfigs), Pe(), Ye(), Ze(), tt(), me(), h.log("deploymentconfigs (subscribe)", R.deploymentConfigs); +R.deploymentConfigs = e.by("metadata.name"), Be(), Fe(R.deploymentConfigs), Fe(R.vanillaReplicationControllers), Ee(R.deploymentConfigs), je(), Ye(), Ze(), tt(), me(), h.log("deploymentconfigs (subscribe)", R.deploymentConfigs); })), at.push(u.watch({ group: "extensions", resource: "replicasets" @@ -448,14 +448,14 @@ pollInterval: 6e4 })); var r, o, i = {}, s = {}; c.SERVICE_CATALOG_ENABLED && D(q, "watch") && (r = function(e) { -var t = P.getServiceClassNameForInstance(e); +var t = j.getServiceClassNameForInstance(e); _.has(W, [ "serviceClasses", t ]) || i[t] || (i[t] = u.get(M, t, {}).then(function(e) { W.serviceClasses[t] = e; }).finally(function() { delete s[t]; })); }, o = function(e) { -var t = P.getServicePlanNameForInstance(e); +var t = j.getServicePlanNameForInstance(e); _.has(W, [ "servicePlans", t ]) || s[t] || (s[t] = u.get(z, t, {}).then(function(e) { W.servicePlans[t] = e; }).finally(function() { @@ -3576,7 +3576,7 @@ target: "_blank" } ] }; } -}, j = function(e, t) { +}, P = function(e, t) { var n = [], a = "Pod" === e.kind ? e : _.get(e, "spec.template"); return a ? (_.each([ "cpu", "memory", "requests.cpu", "requests.memory", "limits.cpu", "limits.memory", "pods" ], function(r) { var o = t.status.total || t.status; @@ -3588,7 +3588,7 @@ s && n.push(s); } } }), n) : n; -}, P = function(t, n, a) { +}, j = function(t, n, a) { var r = []; return t && n ? (_.each(t, function(t) { var o = y(t, n), i = y(t, a), s = e.objectToResourceGroupVersion(t); @@ -3606,7 +3606,7 @@ href: "project/" + e.metadata.namespace + "/quota", label: "View Quota", target: "_blank" } ] -}), r = r.concat(j(t, e)); +}), r = r.concat(P(t, e)); }; _.each(o, p), _.each(i, p); } @@ -3632,8 +3632,8 @@ return { filterQuotasForResource: y, isBestEffortPod: g, isTerminatingPod: v, -getResourceLimitAlerts: j, -getQuotaAlerts: P, +getResourceLimitAlerts: P, +getQuotaAlerts: j, getLatestQuotaAlerts: function(e, t) { var n, a, r = []; return r.push(s.list("resourcequotas", t).then(function(e) { @@ -3642,7 +3642,7 @@ n = e.by("metadata.name"), l.log("quotas", n); a = e.by("metadata.name"), l.log("cluster quotas", a); })), o.all(r).then(function() { return { -quotaAlerts: P(e, n, a) +quotaAlerts: j(e, n, a) }; }); }, @@ -4732,7 +4732,7 @@ name: t.containerName }), a = b(n); t.containerState = a; }); -}, k = t("annotation"), j = function(t, n) { +}, k = t("annotation"), P = function(t, n) { if (e.loaded = !0, e.pod = t, e.dcName = k(t, "deploymentConfig"), e.rcName = k(t, "deployment"), e.deploymentVersion = k(t, "deploymentVersion"), e.logCanRun = !_.includes([ "New", "Pending", "Unknown" ], t.status.phase), g(), delete e.controllerRef, !e.dcName) { var a = u.getControllerReferences(t); e.controllerRef = _.find(a, function(e) { @@ -4748,10 +4748,10 @@ m.get(n.project).then(_.spread(function(a, l) { f = l, e.project = a, e.projectContext = l, i.get("pods", n.pod, l, { errorNotification: !1 }).then(function(t) { -j(t); +P(t); var a = {}; a[t.metadata.name] = t, e.logOptions.container = n.container || t.spec.containers[0].name, e.containerTerminals = C(), S(t), c.fetchReferencedImageStreamImages(a, e.imagesByDockerReference, e.imageStreamImageRefByDockerReference, f), p.push(i.watchObject("pods", n.pod, l, function(t, n) { -j(t, n), w(e.containerTerminals), S(t); +P(t, n), w(e.containerTerminals), S(t); })); }, function(n) { e.loaded = !0, e.alerts.load = { @@ -4927,9 +4927,9 @@ var h, y, b, C; l.isAvailable().then(function(e) { n.metricsAvailable = e; }); -var S = a("orderObjectsByDate"), w = [ "metadata.name" ], k = [], j = function() { +var S = a("orderObjectsByDate"), w = [ "metadata.name" ], k = [], P = function() { n.filteredPods = s.filterForKeywords(C, w, k), n.filteredReplicationControllers = s.filterForKeywords(y, w, k), n.filteredReplicaSets = s.filterForKeywords(b, w, k), n.filteredBuilds = s.filterForKeywords(h, w, k), n.filteredStatefulSets = s.filterForKeywords(_.values(n.statefulSets), w, k); -}, P = function(e) { +}, j = function(e) { n.logOptions.pods[e.metadata.name] = { container: e.spec.containers[0].name }, n.logCanRun.pods[e.metadata.name] = !_.includes([ "New", "Pending", "Unknown" ], e.status.phase); @@ -5005,7 +5005,7 @@ var t = _.get(n, [ "podsByOwnerUID", e.metadata.uid ], []); _.isEmpty(t) || u.toPodsForDeployment(e, t); }, m.get(e.project).then(_.spread(function(e, a) { n.project = e, n.projectContext = a, g.push(o.watch("pods", a, function(e) { -n.podsByName = e.by("metadata.name"), n.pods = S(n.podsByName, !0), n.podsByOwnerUID = d.groupByOwnerUID(n.pods), n.podsLoaded = !0, _.each(n.pods, P), N(), c.log("pods", n.pods); +n.podsByName = e.by("metadata.name"), n.pods = S(n.podsByName, !0), n.podsByOwnerUID = d.groupByOwnerUID(n.pods), n.podsLoaded = !0, _.each(n.pods, j), N(), c.log("pods", n.pods); })), g.push(o.watch({ resource: "statefulsets", group: "apps", @@ -5037,7 +5037,7 @@ e.hideOlderResources = n.filters.hideOlderResources ? "true" : "false", t.replac var e = t.search(); e.kind = n.kindSelector.selected.kind, t.replace().search(e); }), n.$watch("filters.text", _.debounce(function() { -n.filterKeywords = k = s.generateKeywords(n.filters.text), n.$apply(j); +n.filterKeywords = k = s.generateKeywords(n.filters.text), n.$apply(P); }, 50, { maxWait: 250 })), n.$watch("renderOptions.collapseEventsSidebar", function(e, t) { @@ -5088,7 +5088,7 @@ e && !_.includes(a.serviceAccounts, e) ? a.serviceAccounts = [ e ].concat(t) : a } }); }); -}, j = function(e) { +}, P = function(e) { c.list("rolebindings", f, null, { errorNotification: !1 }).then(function(e) { @@ -5100,14 +5100,14 @@ subjectKindsForUI: u.mapRolebindingsForUI(e.by("metadata.name"), b) }, function() { e && (a.roleBindings[e.metadata.name] = e, a.subjectKindsForUI = u.mapRolebindingsForUI(a.roleBindings, b)), w(); }); -}, P = function(t, n) { +}, j = function(t, n) { a.disableAddForm = !0, m.create(t, n, g, f).then(function() { -j(), S("success", C.update.subject.success({ +P(), S("success", C.update.subject.success({ roleName: t.metadata.name, subjectName: n.name })); }, function(a) { -w(), j(), S("error", C.update.subject.error({ +w(), P(), S("error", C.update.subject.error({ roleName: t.metadata.name, subjectName: n.name }), C.errorReason({ @@ -5116,12 +5116,12 @@ httpErr: e("getErrorDetails")(a) }); }, R = function(t, n, r) { a.disableAddForm = !0, m.addSubject(t, n, r, f).then(function() { -j(), S("success", C.update.subject.success({ +P(), S("success", C.update.subject.success({ roleName: t.roleRef.name, subjectName: n.name })); }, function(a) { -w(), j(), S("error", C.update.subject.error({ +w(), P(), S("error", C.update.subject.error({ roleName: t.roleRef.name, subjectName: n.name }), C.errorReason({ @@ -5209,7 +5209,7 @@ e && !_.includes(a.projects, e) ? a.projects = [ e ].concat(t) : a.projects = t; } }); }), l.get(n.project).then(_.spread(function(n, r) { -f = r, j(), k(f), angular.extend(a, { +f = r, P(), k(f), angular.extend(a, { project: n, subjectKinds: E, canUpdateRolebindings: y("rolebindings", "update", g), @@ -5227,7 +5227,7 @@ return l; }).result.then(function() { m.removeSubject(n, i, a.roleBindings, f).then(function(e) { c ? t.url("./") : (s.getProjectRules(g, !0).then(function() { -j(e[0]); +P(e[0]); var t = y("rolebindings", "update", g); angular.extend(a, { canUpdateRolebindings: t, @@ -5263,7 +5263,7 @@ name: n.metadata.name i && _.some(i.subjects, o) ? S("error", C.update.subject.exists({ roleName: n.metadata.name, subjectName: e -})) : i ? R(i, o, r) : P(n, o); +})) : i ? R(i, o, r) : j(n, o); } }), p.listAllRoles(f, { errorNotification: !1 @@ -5276,7 +5276,7 @@ name: e } }); }; -j(), angular.extend(a, { +P(), angular.extend(a, { toggle: { roles: !1 }, @@ -5815,7 +5815,7 @@ namespace: n.project }), e.emptyMessage = "Loading...", e.deploymentConfigsInstantiateVersion = a.getPreferredVersion("deploymentconfigs/instantiate"), e.deploymentConfigsVersion = a.getPreferredVersion("deploymentconfigs"), e.eventsVersion = a.getPreferredVersion("events"), e.horizontalPodAutoscalersVersion = a.getPreferredVersion("horizontalpodautoscalers"); var y = a.getPreferredVersion("builds"), b = a.getPreferredVersion("imagestreams"), C = a.getPreferredVersion("limitranges"), S = a.getPreferredVersion("replicationcontrollers"); e.healthCheckURL = u.healthCheckURL(n.project, "DeploymentConfig", n.deploymentconfig, e.deploymentConfigsVersion.group); -var w = t("mostRecent"), k = t("orderObjectsByDate"), j = []; +var w = t("mostRecent"), k = t("orderObjectsByDate"), P = []; p.get(n.project).then(_.spread(function(a, r) { function u() { g.getLabelSelector().isEmpty() || !$.isEmptyObject(e.deployments) || $.isEmptyObject(e.unfilteredDeployments) ? delete e.alerts.deployments : e.alerts.deployments = { @@ -5832,7 +5832,7 @@ e.hpaWarnings = t; o.get(e.deploymentConfigsVersion, n.deploymentconfig, r, { errorNotification: !1 }).then(function(a) { -e.loaded = !0, e.deploymentConfig = a, e.strategyParams = t("deploymentStrategyParams")(a), p(), j.push(o.watchObject(e.deploymentConfigsVersion, n.deploymentconfig, r, function(t, n) { +e.loaded = !0, e.deploymentConfig = a, e.strategyParams = t("deploymentStrategyParams")(a), p(), P.push(o.watchObject(e.deploymentConfigsVersion, n.deploymentconfig, r, function(t, n) { "DELETED" === n && (e.alerts.deleted = { type: "warning", message: "This deployment configuration has been deleted." @@ -5844,7 +5844,7 @@ type: "error", message: 404 === n.status ? "This deployment configuration can not be found, it may have been deleted." : "The deployment configuration details could not be loaded.", details: 404 === n.status ? "Any remaining deployment history for this deployment will be shown." : t("getErrorDetails")(n) }; -}), j.push(o.watch(S, r, function(a, r, o) { +}), P.push(o.watch(S, r, function(a, r, o) { var s = n.deploymentconfig; if (e.emptyMessage = "No deployments to show", r) { if (i.deploymentBelongsToConfig(o, n.deploymentconfig)) { @@ -5874,12 +5874,12 @@ labelSelector: v("deploymentConfig") + "=" + e.deploymentConfigName } })), o.list(C, r).then(function(e) { d = e.by("metadata.name"), p(); -}), j.push(o.watch(b, r, function(t) { +}), P.push(o.watch(b, r, function(t) { var n = t.by("metadata.name"); c.buildDockerRefMapForImageStreams(n, h), e.deploymentConfig && c.fetchReferencedImageStreamImages([ e.deploymentConfig.spec.template ], e.imagesByDockerReference, h, r), m.log("imagestreams (subscribe)", e.imageStreams); -})), j.push(o.watch(y, r, function(t) { +})), P.push(o.watch(y, r, function(t) { e.builds = t.by("metadata.name"), m.log("builds (subscribe)", e.builds); -})), j.push(o.watch(e.horizontalPodAutoscalersVersion, r, function(t) { +})), P.push(o.watch(e.horizontalPodAutoscalersVersion, r, function(t) { e.autoscalers = s.filterHPA(t.by("metadata.name"), "DeploymentConfig", n.deploymentconfig), p(); })), g.onActiveFiltersChanged(function(t) { e.$apply(function() { @@ -5906,7 +5906,7 @@ details: t("getErrorDetails")(a) }; }); }; -var P = function() { +var j = function() { if (_.get(e, "deploymentConfig.spec.paused")) return !1; var t = _.get(e, "deploymentConfig.spec.triggers", []); return _.some(t, { @@ -5915,7 +5915,7 @@ type: "ConfigChange" }; e.removeVolume = function(t) { var n; -n = P() ? "This will remove the volume from the deployment config and trigger a new deployment." : "This will remove the volume from the deployment config.", t.persistentVolumeClaim ? n += " It will not delete the persistent volume claim." : t.secret ? n += " It will not delete the secret." : t.configMap && (n += " It will not delete the config map."); +n = j() ? "This will remove the volume from the deployment config and trigger a new deployment." : "This will remove the volume from the deployment config.", t.persistentVolumeClaim ? n += " It will not delete the persistent volume claim." : t.secret ? n += " It will not delete the secret." : t.configMap && (n += " It will not delete the config map."); l.confirm({ message: "Remove volume " + t.name + "?", details: n, @@ -5926,7 +5926,7 @@ cancelButtonText: "Cancel" f.removeVolume(e.deploymentConfig, t, r); }); }, e.$on("$destroy", function() { -o.unwatchAll(j); +o.unwatchAll(P); }); })); } ]), angular.module("openshiftConsole").controller("ReplicaSetController", [ "$scope", "$filter", "$routeParams", "AuthorizationService", "BreadcrumbsService", "DataService", "DeploymentsService", "HPAService", "ImageStreamResolver", "Logger", "MetricsService", "ModalsService", "Navigate", "OwnerReferencesService", "PodsService", "ProjectsService", "StorageService", "keyValueEditorUtils", "kind", function(e, t, n, a, r, o, i, s, c, l, u, d, m, p, f, g, v, h, y) { @@ -5944,12 +5944,12 @@ e.resource = "replicationcontrollers", e.healthCheckURL = m.healthCheckURL(n.pro } var k = {}; e.projectName = n.project, e.kind = y, e.replicaSet = null, e.deploymentConfig = null, e.deploymentConfigMissing = !1, e.imagesByDockerReference = {}, e.builds = {}, e.alerts = {}, e.renderOptions = e.renderOptions || {}, e.renderOptions.hideFilterWidget = !0, e.forms = {}, e.logOptions = {}; -var j = []; +var P = []; u.isAvailable().then(function(t) { e.metricsAvailable = t; }); -var P = t("deploymentStatus"), R = function(t) { -e.logCanRun = !_.includes([ "New", "Pending" ], P(t)); +var j = t("deploymentStatus"), R = function(t) { +e.logCanRun = !_.includes([ "New", "Pending" ], j(t)); }, I = t("isIE")(); g.get(n.project).then(_.spread(function(u, g) { e.project = u, e.projectContext = g; @@ -5962,7 +5962,7 @@ var a = s.filterHPA(h, "Deployment", e.deployment.metadata.name); e.autoscalers = e.hpaForRS.concat(a); } else e.autoscalers = e.hpaForRS; }, N = function() { -j.push(o.watch(e.resource, g, function(t) { +P.push(o.watch(e.resource, g, function(t) { var n, a = []; angular.forEach(t.by("metadata.name"), function(t) { (C(t, "deploymentConfig") || "") === e.deploymentConfigName && a.push(t); @@ -6008,7 +6008,7 @@ a && o.get({ group: "apps", resource: "deployments" }, a.name, g).then(function(t) { -e.deployment = t, e.healthCheckURL = m.healthCheckURL(n.project, "Deployment", t.metadata.name, "apps"), j.push(o.watchObject({ +e.deployment = t, e.healthCheckURL = m.healthCheckURL(n.project, "Deployment", t.metadata.name, "apps"), P.push(o.watchObject({ group: "apps", resource: "deployments" }, t.metadata.name, g, function(t, a) { @@ -6025,7 +6025,7 @@ link: m.resourceURL(e.deployment) }, humanizedKind: "Deployments" }), A(), E(); -})), j.push(o.watch({ +})), P.push(o.watch({ group: "extensions", resource: "replicasets" }, g, function(e) { @@ -6052,12 +6052,12 @@ L(); } T(), e.breadcrumbs = r.getBreadcrumbs({ object: t -}), j.push(o.watchObject(e.resource, n.replicaSet, g, function(t, n) { +}), P.push(o.watchObject(e.resource, n.replicaSet, g, function(t, n) { "DELETED" === n && (e.alerts.deleted = { type: "warning", message: "This " + S + " has been deleted." }), e.replicaSet = t, R(t), T(), U(), e.deployment && A(); -})), e.deploymentConfigName && N(), j.push(o.watch("pods", g, function(t) { +})), e.deploymentConfigName && N(), P.push(o.watch("pods", g, function(t) { var n = t.by("metadata.name"); e.podsForDeployment = f.filterForOwner(n, e.replicaSet); })); @@ -6071,18 +6071,18 @@ name: n.replicaSet, kind: y, namespace: n.project }); -}), j.push(o.watch(e.resource, g, function(n, a, r) { +}), P.push(o.watch(e.resource, g, function(n, a, r) { e.replicaSets = n.by("metadata.name"), "ReplicationController" === y && (e.deploymentsByDeploymentConfig = i.associateDeploymentsToDeploymentConfig(e.replicaSets)); var o, s; r && (o = C(r, "deploymentConfig"), s = r.metadata.name), e.deploymentConfigDeploymentsInProgress = e.deploymentConfigDeploymentsInProgress || {}, a ? "ADDED" === a || "MODIFIED" === a && t("deploymentIsInProgress")(r) ? (e.deploymentConfigDeploymentsInProgress[o] = e.deploymentConfigDeploymentsInProgress[o] || {}, e.deploymentConfigDeploymentsInProgress[o][s] = r) : "MODIFIED" === a && e.deploymentConfigDeploymentsInProgress[o] && delete e.deploymentConfigDeploymentsInProgress[o][s] : e.deploymentConfigDeploymentsInProgress = i.associateRunningDeploymentToDeploymentConfig(e.deploymentsByDeploymentConfig), r ? "DELETED" !== a && (r.causes = t("deploymentCauses")(r)) : angular.forEach(e.replicaSets, function(e) { e.causes = t("deploymentCauses")(e); }); -})), j.push(o.watch("imagestreams", g, function(e) { +})), P.push(o.watch("imagestreams", g, function(e) { var t = e.by("metadata.name"); c.buildDockerRefMapForImageStreams(t, k), U(), l.log("imagestreams (subscribe)", t); -})), j.push(o.watch("builds", g, function(t) { +})), P.push(o.watch("builds", g, function(t) { e.builds = t.by("metadata.name"), l.log("builds (subscribe)", e.builds); -})), j.push(o.watch({ +})), P.push(o.watch({ group: "autoscaling", resource: "horizontalpodautoscalers", version: "v1" @@ -6094,12 +6094,12 @@ pollInterval: 6e4 })), o.list("limitranges", g).then(function(t) { e.limitRanges = t.by("metadata.name"), T(); }); -j.push(o.watch("resourcequotas", g, function(t) { +P.push(o.watch("resourcequotas", g, function(t) { e.quotas = t.by("metadata.name"); }, { poll: !0, pollInterval: 6e4 -})), j.push(o.watch("appliedclusterresourcequotas", g, function(t) { +})), P.push(o.watch("appliedclusterresourcequotas", g, function(t) { e.clusterQuotas = t.by("metadata.name"); }, { poll: !0, @@ -6107,7 +6107,7 @@ pollInterval: 6e4 })); var O = t("deploymentIsLatest"); e.showRollbackAction = function() { -return "Complete" === P(e.replicaSet) && !O(e.replicaSet, e.deploymentConfig) && !e.replicaSet.metadata.deletionTimestamp && a.canI("deploymentconfigrollbacks", "create"); +return "Complete" === j(e.replicaSet) && !O(e.replicaSet, e.deploymentConfig) && !e.replicaSet.metadata.deletionTimestamp && a.canI("deploymentconfigrollbacks", "create"); }, e.retryFailedDeployment = function(t) { i.retryFailedDeployment(t, g, e); }, e.rollbackToDeployment = function(t, n, a, r) { @@ -6140,7 +6140,7 @@ cancelButtonText: "Cancel" v.removeVolume(e.replicaSet, n, g); }); }, e.$on("$destroy", function() { -o.unwatchAll(j); +o.unwatchAll(P); }); })); } ]), angular.module("openshiftConsole").controller("StatefulSetsController", [ "$scope", "$routeParams", "DataService", "ProjectsService", "LabelFilter", "PodsService", function(e, t, n, a, r, o) { @@ -6984,7 +6984,7 @@ return _.map(e, "metadata.name"); }); e.secrets.secretsByType = _.each(a, function(e) { e.unshift(""); -}), j(); +}), P(); }); var n = function(e, n) { e.type = n && n.kind ? n.kind : "None"; @@ -7134,7 +7134,7 @@ var t = [].concat(e.triggers.githubWebhooks, e.triggers.gitlabWebhooks, e.trigge return t = _.filter(t, function(e) { return _.has(e, "disabled") && !e.disabled || e.present; }), t = _.map(t, "data"); -}, j = function() { +}, P = function() { switch (e.secrets.picked = { gitSecret: e.buildConfig.spec.source.sourceSecret ? [ e.buildConfig.spec.source.sourceSecret ] : [ { name: "" @@ -7164,7 +7164,7 @@ name: "" mountPath: "" } ]; } -}, P = function(e, t, n) { +}, j = function(e, t, n) { t.name ? e[n] = t : delete e[n]; }, R = function(t, n) { var a = "Custom" === e.strategyType ? "secretSource" : "secret", r = _.filter(n, function(e) { @@ -7199,7 +7199,7 @@ break; case "JenkinsPipeline": "path" === e.jenkinsfileOptions.type ? delete e.updatedBuildConfig.spec.strategy.jenkinsPipelineStrategy.jenkinsfile : delete e.updatedBuildConfig.spec.strategy.jenkinsPipelineStrategy.jenkinsfilePath; } -switch (e.sources.images && !_.isEmpty(e.sourceImages) && (e.updatedBuildConfig.spec.source.images[0].paths = S(e.imageSourcePaths), e.updatedBuildConfig.spec.source.images[0].from = w(e.imageOptions.fromSource)), "None" === e.imageOptions.from.type ? delete h(e.updatedBuildConfig).from : h(e.updatedBuildConfig).from = w(e.imageOptions.from), "None" === e.imageOptions.to.type ? delete e.updatedBuildConfig.spec.output.to : e.updatedBuildConfig.spec.output.to = w(e.imageOptions.to), h(e.updatedBuildConfig).env = p.compactEntries(e.envVars), P(e.updatedBuildConfig.spec.source, _.head(e.secrets.picked.gitSecret), "sourceSecret"), P(h(e.updatedBuildConfig), _.head(e.secrets.picked.pullSecret), "pullSecret"), P(e.updatedBuildConfig.spec.output, _.head(e.secrets.picked.pushSecret), "pushSecret"), e.strategyType) { +switch (e.sources.images && !_.isEmpty(e.sourceImages) && (e.updatedBuildConfig.spec.source.images[0].paths = S(e.imageSourcePaths), e.updatedBuildConfig.spec.source.images[0].from = w(e.imageOptions.fromSource)), "None" === e.imageOptions.from.type ? delete h(e.updatedBuildConfig).from : h(e.updatedBuildConfig).from = w(e.imageOptions.from), "None" === e.imageOptions.to.type ? delete e.updatedBuildConfig.spec.output.to : e.updatedBuildConfig.spec.output.to = w(e.imageOptions.to), h(e.updatedBuildConfig).env = p.compactEntries(e.envVars), j(e.updatedBuildConfig.spec.source, _.head(e.secrets.picked.gitSecret), "sourceSecret"), j(h(e.updatedBuildConfig), _.head(e.secrets.picked.pullSecret), "pullSecret"), j(e.updatedBuildConfig.spec.output, _.head(e.secrets.picked.pushSecret), "pushSecret"), e.strategyType) { case "Source": case "Docker": R(e.updatedBuildConfig.spec.source, e.secrets.picked.sourceSecrets); @@ -7421,7 +7421,7 @@ command: [], environment: [] }), e.strategyParamsPropertyName = t; }; -var j = function(e, t, n, a) { +var P = function(e, t, n, a) { var r = { kind: "ImageStreamTag", namespace: t.namespace, @@ -7435,12 +7435,12 @@ containerNames: [ e ], from: r } }, n; -}, P = function() { +}, j = function() { var t = _.reject(e.updatedDeploymentConfig.spec.triggers, function(e) { return "ImageChange" === e.type || "ConfigChange" === e.type; }); return _.each(e.containerConfigByName, function(n, a) { -n.hasDeploymentTrigger ? t.push(j(a, n.triggerData.istag, n.triggerData.data, n.triggerData.automatic)) : _.find(e.updatedDeploymentConfig.spec.template.spec.containers, { +n.hasDeploymentTrigger ? t.push(P(a, n.triggerData.istag, n.triggerData.data, n.triggerData.automatic)) : _.find(e.updatedDeploymentConfig.spec.template.spec.containers, { name: a }).image = n.image; }), e.triggers.hasConfigTrigger && t.push({ @@ -7462,7 +7462,7 @@ var o = e.strategyData[e.strategyParamsPropertyName].maxUnavailable, i = Number( } "Custom" !== e.strategyData.type && _.each([ "pre", "mid", "post" ], function(t) { _.has(e.strategyData, [ e.strategyParamsPropertyName, t, "execNewPod", "env" ]) && (e.strategyData[e.strategyParamsPropertyName][t].execNewPod.env = f.compactEntries(e.strategyData[e.strategyParamsPropertyName][t].execNewPod.env)); -}), _.has(e, "strategyData.customParams.environment") && (e.strategyData.customParams.environment = f.compactEntries(e.strategyData.customParams.environment)), e.updatedDeploymentConfig.spec.template.spec.imagePullSecrets = _.filter(e.secrets.pullSecrets, "name"), e.updatedDeploymentConfig.spec.strategy = e.strategyData, e.updatedDeploymentConfig.spec.triggers = P(), R(), c.update("deploymentconfigs", e.updatedDeploymentConfig.metadata.name, e.updatedDeploymentConfig, e.context).then(function() { +}), _.has(e, "strategyData.customParams.environment") && (e.strategyData.customParams.environment = f.compactEntries(e.strategyData.customParams.environment)), e.updatedDeploymentConfig.spec.template.spec.imagePullSecrets = _.filter(e.secrets.pullSecrets, "name"), e.updatedDeploymentConfig.spec.strategy = e.strategyData, e.updatedDeploymentConfig.spec.triggers = j(), R(), c.update("deploymentconfigs", e.updatedDeploymentConfig.metadata.name, e.updatedDeploymentConfig, e.context).then(function() { d.addNotification({ type: "success", message: "Deployment config " + e.updatedDeploymentConfig.metadata.name + " was successfully updated." @@ -7866,11 +7866,11 @@ e.projectTemplates = t.by("metadata.name"); }))) : l.toErrorPage("Catalog category " + r.category + "/" + r.subcategory + " not found."); } else l.toErrorPage("Catalog category " + r.category + " not found."); } ]), angular.module("openshiftConsole").controller("CreateFromImageController", [ "$scope", "$filter", "$parse", "$q", "$routeParams", "$uibModal", "APIService", "ApplicationGenerator", "DataService", "HPAService", "ImagesService", "LimitRangesService", "Logger", "MetricsService", "Navigate", "NotificationsService", "ProjectsService", "QuotaService", "SOURCE_URL_PATTERN", "SecretsService", "TaskList", "failureObjectNameFilter", "keyValueEditorUtils", function(e, t, n, a, r, o, i, s, c, l, u, d, m, p, f, g, v, h, y, b, C, S, w) { -var k = t("displayName"), j = t("humanize"); +var k = t("displayName"), P = t("humanize"); e.projectName = r.project, e.sourceURLPattern = y; -var P = r.imageStream; -if (P) if (r.imageTag) { -var R = r.displayName || P; +var j = r.imageStream; +if (j) if (r.imageTag) { +var R = r.displayName || j; e.displayName = r.displayName, e.advancedOptions = "true" === r.advanced, e.breadcrumbs = [ { title: "Add to Project", link: "project/" + e.projectName + "/create" @@ -7906,7 +7906,7 @@ y = e.by("metadata.name"), m.log("cluster quotas", y); }), e.$watch("scaling.autoscale", S), e.$watch("container", S, !0), e.$watch("name", function(e, t) { I.value && I.value !== t || (I.value = e); }), function(a) { -a.name = r.name, a.imageName = P, a.imageTag = r.imageTag, a.namespace = r.namespace, a.buildConfig = { +a.name = r.name, a.imageName = j, a.imageTag = r.imageTag, a.namespace = r.namespace, a.buildConfig = { buildOnSourceChange: !0, buildOnImageChange: !0, buildOnConfigChange: !0, @@ -8013,13 +8013,13 @@ message: "All resources for application " + e.name + " were created successfully }) : (r = !0, n.failure.forEach(function(e) { a.push({ type: "error", -message: "Cannot create " + j(e.object.kind).toLowerCase() + ' "' + e.object.metadata.name + '". ', +message: "Cannot create " + P(e.object.kind).toLowerCase() + ' "' + e.object.metadata.name + '". ', details: e.data.message }); }), n.success.forEach(function(e) { a.push({ type: "success", -message: "Created " + j(e.kind).toLowerCase() + ' "' + e.metadata.name + '" successfully. ' +message: "Created " + P(e.kind).toLowerCase() + ' "' + e.metadata.name + '" successfully. ' }); })), t.resolve({ alerts: a, @@ -8560,11 +8560,11 @@ a.history.back(); n.cancel = w; var k = function(e) { return n.attach.allContainers || n.attach.containers[e.name]; -}, j = function() { +}, P = function() { var e = _.get(n, "attach.resource.spec.template"); n.existingMountPaths = m.getMountPaths(e, k); }; -n.$watchGroup([ "attach.resource", "attach.allContainers" ], j), n.$watch("attach.containers", j, !0); +n.$watchGroup([ "attach.resource", "attach.allContainers" ], P), n.$watch("attach.containers", P, !0); s.get(v, t.name, d).then(function(e) { n.attach.resource = e, n.breadcrumbs = i.getBreadcrumbs({ object: e, @@ -9539,7 +9539,7 @@ _.isEmpty(p.createResources) ? (t = _.head(p.updateResources), i.update(r.kindTo namespace: p.input.selectedProject.metadata.name }).then(function() { if (!p.isDialog) { -var e = P(t.kind); +var e = j(t.kind); c.addNotification({ type: "success", message: _.capitalize(e) + " " + t.metadata.name + " was successfully updated." @@ -9550,14 +9550,14 @@ b(); c.addNotification({ id: "from-file-error", type: "error", -message: "Unable to update the " + P(t.kind) + " '" + t.metadata.name + "'.", +message: "Unable to update the " + j(t.kind) + " '" + t.metadata.name + "'.", details: e("getErrorDetails")(n) }); })) : (t = _.head(p.createResources), i.create(r.kindToResource(t.kind), null, t, { namespace: p.input.selectedProject.metadata.name }).then(function() { if (!p.isDialog) { -var e = P(t.kind); +var e = j(t.kind); c.addNotification({ type: "success", message: _.capitalize(e) + " " + t.metadata.name + " was successfully created." @@ -9568,7 +9568,7 @@ b(); c.addNotification({ id: "from-file-error", type: "error", -message: "Unable to create the " + P(t.kind) + " '" + t.metadata.name + "'.", +message: "Unable to create the " + j(t.kind) + " '" + t.metadata.name + "'.", details: e("getErrorDetails")(n) }); })); @@ -9588,17 +9588,17 @@ var n = [], a = !1; if (t.failure.length > 0) a = !0, p.errorOccurred = !0, t.failure.forEach(function(e) { n.push({ type: "error", -message: "Cannot create " + P(e.object.kind) + ' "' + e.object.metadata.name + '". ', +message: "Cannot create " + j(e.object.kind) + ' "' + e.object.metadata.name + '". ', details: e.data.message }); }), t.success.forEach(function(e) { n.push({ type: "success", -message: "Created " + P(e.kind) + ' "' + e.metadata.name + '" successfully. ' +message: "Created " + j(e.kind) + ' "' + e.metadata.name + '" successfully. ' }); }); else { var r; -r = p.isList ? "All items in list were created successfully." : P(p.resourceKind) + " " + p.resourceName + " was successfully created.", n.push({ +r = p.isList ? "All items in list were created successfully." : j(p.resourceKind) + " " + p.resourceName + " was successfully created.", n.push({ type: "success", message: r }); @@ -9625,17 +9625,17 @@ var n = [], a = !1; if (t.failure.length > 0) a = !0, p.errorOccurred = !0, t.failure.forEach(function(e) { n.push({ type: "error", -message: "Cannot update " + P(e.object.kind) + ' "' + e.object.metadata.name + '". ', +message: "Cannot update " + j(e.object.kind) + ' "' + e.object.metadata.name + '". ', details: e.data.message }); }), t.success.forEach(function(e) { n.push({ type: "success", -message: "Updated " + P(e.kind) + ' "' + e.metadata.name + '" successfully. ' +message: "Updated " + j(e.kind) + ' "' + e.metadata.name + '" successfully. ' }); }); else { var r; -r = p.isList ? "All items in list were updated successfully." : P(p.resourceKind) + " " + p.resourceName + " was successfully updated.", n.push({ +r = p.isList ? "All items in list were updated successfully." : j(p.resourceKind) + " " + p.resourceName + " was successfully updated.", n.push({ type: "success", message: r }); @@ -9656,15 +9656,15 @@ alerts: n }), e.promise; }); } -var j; +var P; p.noProjectsCantCreate = !1; -var P = e("humanizeKind"), R = e("getErrorDetails"); +var j = e("humanizeKind"), R = e("getErrorDetails"); d.clear(), p.$on("no-projects-cannot-create", function() { p.noProjectsCantCreate = !0; }), p.input = { selectedProject: p.project }, p.aceLoaded = function(e) { -(j = e.getSession()).setOption("tabSize", 2), j.setOption("useSoftTabs", !0), e.setDragDelay = 0, e.$blockScrolling = 1 / 0; +(P = e.getSession()).setOption("tabSize", 2), P.setOption("useSoftTabs", !0), e.setDragDelay = 0, e.$blockScrolling = 1 / 0; }; var I = function(e) { a.open({ @@ -11491,7 +11491,7 @@ links: [ { href: "", label: "Retry", onClick: function() { -delete m.alerts[t], U = 1, P(); +delete m.alerts[t], U = 1, j(); } } ] }; @@ -11505,12 +11505,12 @@ t.total = p(t.id), t.total && (m.hasLimits = !0); var a = _.get(n, "usage.value"); isNaN(a) && (a = 0), e.convert && (a = e.convert(a)), t.used = d3.round(a, e.usagePrecision), t.total && (t.available = d3.round(t.total - a, e.usagePrecision)), e.totalUsed += t.used; } -function j(e, t) { +function P(e, t) { m.noData = !1; var n = _.initial(t.data); e.data ? e.data = _.chain(e.data).takeRight(D).concat(n).value() : e.data = n; } -function P() { +function j() { if (w()) { var e = v(), t = []; angular.forEach(m.metrics, function(n) { @@ -11525,7 +11525,7 @@ k(n, r, e); } }), t = t.concat(a), r.all(a).then(function(e) { A || angular.forEach(e, function(e) { -e && j(_.find(n.datasets, { +e && P(_.find(n.datasets, { id: e.metricID }), e); }); @@ -11629,8 +11629,8 @@ _.each(m.metrics, function(e) { _.each(e.datasets, function(e) { delete e.data; }); -}), delete m.metricsError, P(); -}, !0), R = t(P, c.getDefaultUpdateInterval(), !1); +}), delete m.metricsError, j(); +}, !0), R = t(j, c.getDefaultUpdateInterval(), !1); }); var O = o.$on("metrics.charts.resize", function() { c.redraw(I), c.redraw(E); @@ -11671,7 +11671,7 @@ count: 0 return _.each(R[e.descriptor], function(e) { _.each(e, function(e) { var t = s(e); -(!j || j < e.end) && (j = e.end), n(e) || (t.total += e.value, t.count = t.count + 1); +(!P || P < e.end) && (P = e.end), n(e) || (t.total += e.value, t.count = t.count + 1); }); }), _.each(a, function(t, n) { var a; @@ -11690,7 +11690,7 @@ var a = t + "-dates"; _.set(i, [ "xs", t ], a); var s = [ a ], c = [ t ]; o.push(s), o.push(c), _.each(R[r.descriptor][t], function(e) { -if (s.push(e.start), (!j || j < e.end) && (j = e.end), n(e)) c.push(e.value); else { +if (s.push(e.start), (!P || P < e.end) && (P = e.end), n(e)) c.push(e.value); else { var t = r.convert ? r.convert(e.value) : e.value; c.push(t); } @@ -11722,7 +11722,7 @@ pods: t.pods, namespace: e.metadata.namespace, bucketDuration: p() }; -return w || (n.containerName = t.options.selectedContainer.name), n.start = j || d(), n; +return w || (n.containerName = t.options.selectedContainer.name), n.start = P || d(), n; } } function g(e) { @@ -11757,7 +11757,7 @@ _.set(R, [ e, n ], i); } function y() { if (!I && v()) { -P = Date.now(); +j = Date.now(); var e = f(); c.getPodMetrics(e).then(u, g).finally(function() { t.loaded = !0; @@ -11766,7 +11766,7 @@ t.loaded = !0; } var b, C = {}, S = 30, w = "compact" === t.profile, k = !1; t.uniqueID = s.uniqueID(); -var j, P, R = {}, I = w, E = function(e) { +var P, j, R = {}, I = w, E = function(e) { return e >= 1024; }; t.metrics = [ { @@ -11837,9 +11837,9 @@ var n = s.getDefaultSparklineConfig(e.chartID, e.units, w); return _.set(n, "legend.show", !w && !t.showAverage), n; }; t.$watch("options", function() { -R = {}, j = null, delete t.metricsError, y(); +R = {}, P = null, delete t.metricsError, y(); }, !0), b = e(y, s.getDefaultUpdateInterval(), !1), t.updateInView = function(e) { -I = !e, e && (!P || Date.now() > P + s.getDefaultUpdateInterval()) && y(); +I = !e, e && (!j || Date.now() > j + s.getDefaultUpdateInterval()) && y(); }; var A = r.$on("metrics.charts.resize", function() { s.redraw(C); @@ -11897,10 +11897,10 @@ offset: { top: t.followAffixTop || 0 } }); -}, j = function() { +}, P = function() { return $("#" + t.logViewerID + " .log-view-output"); -}, P = function(e) { -var n = j(), a = n.offset().top; +}, j = function(e) { +var n = P(), a = n.offset().top; if (!(a < 0)) { var r = $(".ellipsis-pulser").outerHeight(!0), o = t.fixedHeight ? t.fixedHeight : Math.floor($(window).height() - a - r); t.chromeless || t.fixedHeight || (o -= 40), e ? n.animate({ @@ -11915,11 +11915,11 @@ t.sized = !0; }); }, n = 0; y = setInterval(function() { -n > 10 ? e() : (n++, j().is(":visible") && (P(), e())); +n > 10 ? e() : (n++, P().is(":visible") && (j(), e())); }, 100); } }, I = _.debounce(function() { -P(!0), b(), S(); +j(!0), b(), S(); }, 100); m.on("resize", I); var E, N = function() { @@ -13098,7 +13098,7 @@ cancelButtonText: "Cancel" i.hideNotification("process-template-error"), _.each(w, function(e) { !e.id || "error" !== e.type && "warning" !== e.type || i.hideNotification(e.id); }); -}, j = function(e) { +}, P = function(e) { k(), w = u.getSecurityAlerts(b, v.selectedProject.metadata.name); var t = e.quotaAlerts || []; w = w.concat(t), _.filter(w, { @@ -13106,17 +13106,17 @@ type: "error" }).length ? (v.disableInputs = !1, _.each(w, function(e) { e.id = _.uniqueId("process-template-alert-"), i.addNotification(e); })) : w.length ? (S(w), v.disableInputs = !1) : C(); -}, P = function() { +}, j = function() { if (_.has(v.selectedProject, "metadata.uid")) return t.when(v.selectedProject); var n = v.selectedProject.metadata.name, a = v.selectedProject.metadata.annotations["new-display-name"], r = e("description")(v.selectedProject); return c.create(n, a, r); }; v.createFromTemplate = function() { -v.disableInputs = !0, P().then(function(e) { +v.disableInputs = !0, j().then(function(e) { v.selectedProject = e, g = { namespace: v.selectedProject.metadata.name }, v.template.labels = m.mapEntries(m.compactEntries(v.labels)), r.create("processedtemplates", null, v.template, g).then(function(e) { -s.setTemplateData(e.parameters, v.template.parameters, e.message), b = e.objects, l.getLatestQuotaAlerts(b, g).then(j); +s.setTemplateData(e.parameters, v.template.parameters, e.message), b = e.objects, l.getLatestQuotaAlerts(b, g).then(P); }, function(e) { v.disableInputs = !1; var t; @@ -14080,15 +14080,15 @@ details: g(e) } } else n.mode = "istag"; }); -var j, P = e("displayName"), R = function() { +var P, j = e("displayName"), R = function() { var e = { -started: "Deploying image " + n.app.name + " to project " + P(n.input.selectedProject), -success: "Deployed image " + n.app.name + " to project " + P(n.input.selectedProject), -failure: "Failed to deploy image " + n.app.name + " to project " + P(n.input.selectedProject) +started: "Deploying image " + n.app.name + " to project " + j(n.input.selectedProject), +success: "Deployed image " + n.app.name + " to project " + j(n.input.selectedProject), +failure: "Failed to deploy image " + n.app.name + " to project " + j(n.input.selectedProject) }; d.clear(), d.add(e, {}, n.input.selectedProject.metadata.name, function() { var e = t.defer(); -return o.batch(j, { +return o.batch(P, { namespace: n.input.selectedProject.metadata.name }).then(function(t) { var a, r = !_.isEmpty(t.failure); @@ -14143,8 +14143,8 @@ e.id = _.uniqueId("deploy-image-alert-"), c.addNotification(e); }; n.create = function() { n.disableInputs = !0, h(), y().then(function(e) { -n.input.selectedProject = e, j = m(); -var t = r.ifResourcesDontExist(j, n.input.selectedProject.metadata.name), a = u.getLatestQuotaAlerts(j, { +n.input.selectedProject = e, P = m(); +var t = r.ifResourcesDontExist(P, n.input.selectedProject.metadata.name), a = u.getLatestQuotaAlerts(P, { namespace: n.input.selectedProject.metadata.name }), o = function(e) { return n.nameTaken = e.nameTaken, a; @@ -14603,15 +14603,15 @@ return _.filter(e, "unread"); _.each(p.notificationGroups, function(e) { e.totalUnread = w(e.notifications).length, e.hasUnread = !!e.totalUnread, o.$emit("NotificationDrawerWrapper.onUnreadNotifications", e.totalUnread); }); -}, j = function(e) { +}, P = function(e) { _.each(p.notificationGroups, function(t) { _.remove(t.notifications, { uid: e.uid, namespace: e.namespace }); }); -}, P = function(e) { -v[r.project] && delete v[r.project][e.uid], g[r.project] && delete g[r.project][e.uid], j(e); +}, j = function(e) { +v[r.project] && delete v[r.project][e.uid], g[r.project] && delete g[r.project][e.uid], P(e); }, R = function() { g[r.project] = {}, v[r.project] = {}; }, I = function(e) { @@ -14704,7 +14704,7 @@ headingInclude: "views/directives/notifications/header.html", notificationBodyInclude: "views/directives/notifications/notification-body.html", customScope: { clear: function(e, t, n) { -c.markRead(e.uid), c.markCleared(e.uid), n.notifications.splice(t, 1), P(e), D(); +c.markRead(e.uid), c.markCleared(e.uid), n.notifications.splice(t, 1), j(e), D(); }, markRead: function(e) { e.unread = !1, c.markRead(e.uid), D(); @@ -14726,7 +14726,7 @@ p.drawerHidden = !p.drawerHidden; })), f.push(o.$on("NotificationDrawerWrapper.hide", function() { p.drawerHidden = !0; })), f.push(o.$on("NotificationDrawerWrapper.clear", function(e, t) { -c.markCleared(t.uid), P(t), p.countUnreadNotifications(); +c.markCleared(t.uid), j(t), p.countUnreadNotifications(); })); }; p.$onInit = function() { diff --git a/dist/styles/main.css b/dist/styles/main.css index dcc4455d0b..0701289ddc 100644 --- a/dist/styles/main.css +++ b/dist/styles/main.css @@ -5907,7 +5907,7 @@ kubernetes-container-terminal .terminal-actions .spinner{top:5px} @media (min-width:992px){.environment-from-editor .key-value-editor-input .ui-select,.key-value-editor .key-value-editor-input .ui-select{float:left;width:50%} .environment-from-editor .key-value-editor-input .ui-select+.ui-select,.key-value-editor .key-value-editor-input .ui-select+.ui-select{padding-top:0;padding-left:5px} } -.key-value-editor .key-value-editor-input,.key-value-editor-header{float:left;margin-bottom:0;padding-right:5px;width:50%} +.environment-from-editor-header,.key-value-editor .key-value-editor-input,.key-value-editor-header{float:left;margin-bottom:0;padding-right:5px;width:50%} .membership .content-pane,.membership .content-pane .col-add-role{width:100%} .environment-from-editor-entry-header,.key-value-editor-entry-header{padding-right:52px} .environment-from-editor-header,.key-value-editor-header{margin-bottom:5px}