YARN-7828. Clicking on yarn service should take to component tab. (Sunil G via wangda)

Change-Id: Ib52d6727c863bed65de30b02bf60080255af11b8
This commit is contained in:
Wangda Tan 2018-01-31 21:43:08 +08:00
parent 64344c345d
commit 5ca4bf22dd
6 changed files with 12 additions and 12 deletions

View File

@ -122,7 +122,7 @@ export default Ember.Controller.extend({
getCellContent: function(row) {
return {
displayText: row.get('appName'),
href: `#/yarn-app/${row.id}/attempts?service=${row.get('appName')}`
href: `#/yarn-app/${row.id}/components?service=${row.get('appName')}`
};
}
}, {

View File

@ -50,7 +50,7 @@ export default Ember.Controller.extend({
routeName: 'yarn-services'
}, {
text: `${serviceName} [${appId}]`,
href: `#/yarn-app/${appId}/info?service=${serviceName}`
href: `#/yarn-app/${appId}/components?service=${serviceName}`
}, {
text: "Attempts",
href: `#/yarn-app/${appId}/attempts?service=${serviceName}`

View File

@ -102,7 +102,7 @@ export default Ember.Controller.extend({
routeName: 'yarn-services'
}, {
text: `${serviceName} [${appId}]`,
href: `#/yarn-app/${appId}/info?service=${serviceName}`
href: `#/yarn-app/${appId}/components?service=${serviceName}`
});
} else {
breadcrumbs.push({

View File

@ -43,13 +43,13 @@ export default Ember.Controller.extend({
if (appId && serviceName && componentName && instanceName) {
crumbs.push({
text: `${serviceName} [${appId}]`,
href: `#/yarn-app/${appId}/info?service=${serviceName}`
href: `#/yarn-app/${appId}/components?service=${serviceName}`
}, {
text: 'Components',
href: `#/yarn-app/${appId}/components?service=${serviceName}`
}, {
text: `${componentName}`,
href: `#/yarn-component-instances/${componentName}/info?service=${serviceName}&&appid=${appId}`
href: `#/yarn-component-instances/${componentName}/components?service=${serviceName}&&appid=${appId}`
}, {
text: `${instanceName}`
});

View File

@ -42,7 +42,7 @@ export default Ember.Controller.extend({
if (appId && serviceName && componentName) {
crumbs.push({
text: `${serviceName} [${appId}]`,
href: `#/yarn-app/${appId}/info?service=${serviceName}`
href: `#/yarn-app/${appId}/components?service=${serviceName}`
}, {
text: 'Components',
href: `#/yarn-app/${appId}/components?service=${serviceName}`

View File

@ -108,12 +108,6 @@
<div class="clearfix">
<ul class="nav nav-pills">
<ul class="nav nav-pills collapse in">
{{#link-to 'yarn-app.attempts' tagName="li" class=(if (eq target.currentPath 'yarn-app.attempts') "active")}}
{{#link-to 'yarn-app.attempts' appId (query-params service=model.serviceName)}}Attempts List{{/link-to}}
{{/link-to}}
{{#link-to 'yarn-app.charts' tagName="li" class=(if (eq target.currentPath 'yarn-app.charts') "active")}}
{{#link-to 'yarn-app.charts' appId (query-params service=model.serviceName)}}Resource Usage{{/link-to}}
{{/link-to}}
{{#if model.serviceName}}
{{#link-to 'yarn-app.components' tagName="li" class=(if (eq target.currentPath 'yarn-app.components') "active")}}
{{#link-to 'yarn-app.components' appId (query-params service=model.serviceName)}}Components{{/link-to}}
@ -122,6 +116,12 @@
{{#link-to 'yarn-app.configs' appId (query-params service=model.serviceName)}}Configurations &amp; Metrics{{/link-to}}
{{/link-to}}
{{/if}}
{{#link-to 'yarn-app.attempts' tagName="li" class=(if (eq target.currentPath 'yarn-app.attempts') "active")}}
{{#link-to 'yarn-app.attempts' appId (query-params service=model.serviceName)}}Attempts List{{/link-to}}
{{/link-to}}
{{#link-to 'yarn-app.charts' tagName="li" class=(if (eq target.currentPath 'yarn-app.charts') "active")}}
{{#link-to 'yarn-app.charts' appId (query-params service=model.serviceName)}}Resource Usage{{/link-to}}
{{/link-to}}
{{#link-to 'yarn-app.info' tagName="li" class=(if (eq target.currentPath 'yarn-app.info') "active")}}
{{#link-to 'yarn-app.info' appId (query-params service=model.serviceName)}}Diagnostics{{/link-to}}
{{/link-to}}