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.
(cherry picked from commit 55e4252fc5
)
This commit is contained in:
parent
71661cec77
commit
25b91fa98d
|
@ -30,6 +30,9 @@ export default Ember.Component.extend({
|
||||||
actions: {
|
actions: {
|
||||||
changeViewType(param) {
|
changeViewType(param) {
|
||||||
this.sendAction("changeViewType", param);
|
this.sendAction("changeViewType", param);
|
||||||
|
if (this.get('attemptModel')) {
|
||||||
|
this.setAttemptsGridColumnsAndRows();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -324,10 +327,13 @@ export default Ember.Component.extend({
|
||||||
minWidth: '300px',
|
minWidth: '300px',
|
||||||
getCellContent: function(row) {
|
getCellContent: function(row) {
|
||||||
var attemptId = row.get('id');
|
var attemptId = row.get('id');
|
||||||
var query = serviceName? '?service='+serviceName : '';
|
var query = 'viewType=' + self.get("viewType");
|
||||||
|
if (serviceName) {
|
||||||
|
query += '&service=' + serviceName;
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
displayText: attemptId,
|
displayText: attemptId,
|
||||||
href: `#/yarn-app-attempt/${attemptId}${query}`
|
href: `#/yarn-app-attempt/${attemptId}?${query}`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Reference in New Issue