From 1bce0af5cc6c3a92cd2b1535f14f002dbf6ab626 Mon Sep 17 00:00:00 2001 From: Samuel Padgett Date: Mon, 2 Oct 2017 13:29:30 -0400 Subject: [PATCH] Don't show "Service Instance" in Other Resources list Since we have a dedicated page for service instances now, don't show it in the other resources list. --- app/scripts/controllers/otherResources.js | 23 ++++++++++++----------- dist/scripts/scripts.js | 23 ++++++++++++----------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/app/scripts/controllers/otherResources.js b/app/scripts/controllers/otherResources.js index fac8bc84ff..c715cb0135 100644 --- a/app/scripts/controllers/otherResources.js +++ b/app/scripts/controllers/otherResources.js @@ -19,27 +19,28 @@ angular.module('openshiftConsole') $scope.kindSelector = {disabled: true}; $scope.kinds = _.filter(APIService.availableKinds(), function(kind) { switch (kind.kind) { - case "ReplicationController": - case "Deployment": - case "DeploymentConfig": - case "BuildConfig": + case "AppliedClusterResourceQuota": case "Build": + case "BuildConfig": case "ConfigMap": - case "Pod": - case "PersistentVolumeClaim": + case "Deployment": + case "DeploymentConfig": case "Event": - case "Secret": - case "Service": - case "Route": case "ImageStream": - case "ImageStreamTag": case "ImageStreamImage": case "ImageStreamImport": case "ImageStreamMapping": + case "ImageStreamTag": case "LimitRange": + case "PersistentVolumeClaim": + case "Pod": case "ReplicaSet": + case "ReplicationController": case "ResourceQuota": - case "AppliedClusterResourceQuota": + case "Route": + case "Secret": + case "Service": + case "ServiceInstance": case "StatefulSet": return false; default: diff --git a/dist/scripts/scripts.js b/dist/scripts/scripts.js index 8b137f8a96..be95b13fe5 100644 --- a/dist/scripts/scripts.js +++ b/dist/scripts/scripts.js @@ -6565,27 +6565,28 @@ n.projectName = e.project, n.labelSuggestions = {}, n.alerts = n.alerts || {}, n disabled: !0 }, n.kinds = _.filter(l.availableKinds(), function(e) { switch (e.kind) { -case "ReplicationController": -case "Deployment": -case "DeploymentConfig": -case "BuildConfig": +case "AppliedClusterResourceQuota": case "Build": +case "BuildConfig": case "ConfigMap": -case "Pod": -case "PersistentVolumeClaim": +case "Deployment": +case "DeploymentConfig": case "Event": -case "Secret": -case "Service": -case "Route": case "ImageStream": -case "ImageStreamTag": case "ImageStreamImage": case "ImageStreamImport": case "ImageStreamMapping": +case "ImageStreamTag": case "LimitRange": +case "PersistentVolumeClaim": +case "Pod": case "ReplicaSet": +case "ReplicationController": case "ResourceQuota": -case "AppliedClusterResourceQuota": +case "Route": +case "Secret": +case "Service": +case "ServiceInstance": case "StatefulSet": return !1;