Browse Source

YARN-7956. [UI2] Avoid duplicating Components link under Services/<ServiceName>/Components. Contributed by Yesha Vora.

(cherry picked from commit b6d94fad0811c5b635476d03acea417b277d382b)
Sunil G 7 years ago
parent
commit
f53e5e000a

+ 1 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-component-instance.js

@@ -45,8 +45,7 @@ export default Ember.Controller.extend({
         text: `${serviceName} [${appId}]`,
         href: `#/yarn-app/${appId}/components?service=${serviceName}`
       }, {
-        text: 'Components',
-        href: `#/yarn-app/${appId}/components?service=${serviceName}`
+        text: 'Components'
       }, {
         text: `${componentName}`,
         href: `#/yarn-component-instances/${componentName}/components?service=${serviceName}&&appid=${appId}`

+ 1 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-component-instances.js

@@ -44,8 +44,7 @@ export default Ember.Controller.extend({
         text: `${serviceName} [${appId}]`,
         href: `#/yarn-app/${appId}/components?service=${serviceName}`
       }, {
-        text: 'Components',
-        href: `#/yarn-app/${appId}/components?service=${serviceName}`
+        text: 'Components'
       }, {
         text: `${componentName}`,
         href: `#/yarn-component-instances/${componentName}/info?service=${serviceName}&&appid=${appId}`