You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/02/03 14:53:40 UTC

[36/50] [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)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/98608ce7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/98608ce7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/98608ce7

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 98608ce71594a10338b42f41f127ac5e797876ca
Parents: ce82235
Author: pallavkul <pa...@gmail.com>
Authored: Thu Feb 2 23:10:35 2017 +0530
Committer: pallavkul <pa...@gmail.com>
Committed: Thu Feb 2 23:10:35 2017 +0530

----------------------------------------------------------------------
 .../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/98608ce7/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/98608ce7/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,