You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rz...@apache.org on 2017/02/17 22:56:42 UTC
[04/51] [abbrv] ambari git commit: AMBARI-19849. Recent workflows in
Workflow designer should be in descending order of time of updation (Venkata
Sairam via pallavkul)
AMBARI-19849. Recent workflows in Workflow designer should be in descending order of time of updation (Venkata Sairam via pallavkul)
(cherry picked from commit ae4f0a94481b921a49f86f967352a130a5d378da)
Change-Id: I51fe5cc6b65f2144c98553499a7c6666875309bc
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/75447c99
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/75447c99
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/75447c99
Branch: refs/heads/branch-feature-BUG-74026
Commit: 75447c992d1052d270bfec545987c2906594bbe0
Parents: ad7d916
Author: pallavkul <pa...@gmail.com>
Authored: Thu Feb 2 23:10:35 2017 +0530
Committer: Zuul <re...@hortonworks.com>
Committed: Mon Feb 6 18:15:32 2017 -0800
----------------------------------------------------------------------
.../src/main/resources/ui/app/components/designer-workspace.js | 5 +++--
.../wfmanager/src/main/resources/ui/app/components/drafts-wf.js | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/75447c99/contrib/views/wfmanager/src/main/resources/ui/app/components/designer-workspace.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/designer-workspace.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/designer-workspace.js
index 16fca55..0b689b0 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/designer-workspace.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/designer-workspace.js
@@ -169,8 +169,9 @@ export default Ember.Component.extend({
generateTabId(){
return 'tab-'+ Math.ceil(Math.random() * 100000);
},
- recentFilesSorted: Ember.computed.sort("recentFiles", "['updatedAt:desc']"),
- projList:Ember.computed("recentFilesSorted", function() {
+ sortProp: ['updatedAt:desc'],
+ recentFilesSorted: Ember.computed.sort("recentFiles", "sortProp"),
+ projList: Ember.computed("recentFilesSorted", function() {
return this.get("recentFilesSorted").slice(0, 10);
}),
actions : {
http://git-wip-us.apache.org/repos/asf/ambari/blob/75447c99/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
index 02483d4..33533db 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
@@ -23,6 +23,7 @@ export default Ember.Component.extend({
"isBundle": true,
"isCoordinator": true,
"isWorkflow": true,
+ "sortProp": ['updatedAt:desc'],
"filteredModels": Ember.computed("model", "search", "isBundle", "isCoordinator", "isWorkflow", function(){
Ember.run.later(()=>{
this.$('.actions').hide();
@@ -61,7 +62,7 @@ export default Ember.Component.extend({
return eval(condition);
});
}),
- modelSorted : Ember.computed.sort("filteredModels", "['updatedAt:desc']"),
+ modelSorted : Ember.computed.sort("filteredModels", "sortProp"),
"isDeleteDraftConformation": false,
"currentDraft": undefined,
"deleteInProgress": false,