From 988716ff011354cad0b8b2af2e3752e7d933bd8d Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 26 Feb 2015 16:53:15 -0800 Subject: [PATCH 1/3] [Edit] Refresh Library less aggressively Update the root object (used to populate the Library pane) less often, to avoid recreating the whole tree and thereby causing the tree to collapse. WTD-788. --- platform/commonUI/edit/bundle.json | 7 ++- .../edit/res/templates/edit-object.html | 7 ++- .../src/controllers/EditPanesController.js | 47 +++++++++++++++++++ 3 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 platform/commonUI/edit/src/controllers/EditPanesController.js diff --git a/platform/commonUI/edit/bundle.json b/platform/commonUI/edit/bundle.json index 953497a388..35fae3de9b 100644 --- a/platform/commonUI/edit/bundle.json +++ b/platform/commonUI/edit/bundle.json @@ -16,6 +16,11 @@ "key": "EditActionController", "implementation": "EditActionController.js", "depends": [ "$scope" ] + }, + { + "key": "EditPanesController", + "implementation": "controllers/EditPanesController.js", + "depends": [ "$scope" ] } ], "actions": [ @@ -72,7 +77,7 @@ { "key": "edit-object", "templateUrl": "templates/edit-object.html", - "uses": [ "view", "context" ] + "uses": [ "view" ] }, { "key": "edit-action-buttons", diff --git a/platform/commonUI/edit/res/templates/edit-object.html b/platform/commonUI/edit/res/templates/edit-object.html index 2ff322e37c..662a77008a 100644 --- a/platform/commonUI/edit/res/templates/edit-object.html +++ b/platform/commonUI/edit/res/templates/edit-object.html @@ -18,10 +18,13 @@