YARN-7830. [UI2] Post selecting grid view in Attempt page, attempt info page should also be opened with grid view. Contributed by Gergely Novák.

This commit is contained in:
Sunil G 2018-04-20 20:05:05 +05:30
parent b0753cc2c0
commit 55e4252fc5
1 changed files with 8 additions and 2 deletions

View File

@ -30,6 +30,9 @@ export default Ember.Component.extend({
actions: {
changeViewType(param) {
this.sendAction("changeViewType", param);
if (this.get('attemptModel')) {
this.setAttemptsGridColumnsAndRows();
}
}
},
@ -324,10 +327,13 @@ export default Ember.Component.extend({
minWidth: '300px',
getCellContent: function(row) {
var attemptId = row.get('id');
var query = serviceName? '?service='+serviceName : '';
var query = 'viewType=' + self.get("viewType");
if (serviceName) {
query += '&service=' + serviceName;
}
return {
displayText: attemptId,
href: `#/yarn-app-attempt/${attemptId}${query}`
href: `#/yarn-app-attempt/${attemptId}?${query}`
};
}
}, {