algairim commented on a change in pull request #298:
URL: https://github.com/apache/brooklyn-ui/pull/298#discussion_r733646232



##########
File path: 
ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js
##########
@@ -98,7 +104,17 @@ export function catalogSelectorDirective() {
         $scope.viewModes = PALETTE_VIEW_MODES;
         $scope.viewOrders = PALETTE_VIEW_ORDERS;
         if (!$scope.state) $scope.state = {};
-        if (!$scope.state.viewMode) $scope.state.viewMode = 
PALETTE_VIEW_MODES.normal;
+        if (!$scope.state.viewMode) {
+            const savedViewMode = sessionStore.getComposerViewMode(true);
+            $scope.state.viewMode = ((typeof savedViewMode === 'object') && 
(savedViewMode !== null))
+                ? savedViewMode
+                : PALETTE_VIEW_MODES.normal
+        };
+
+        if(!$scope.search) {
+            const savedSearch = sessionStore.getComposerSearch();
+            if (typeof savedSearch === 'string' && savedSearch.length) 
$scope.search = savedSearch;

Review comment:
       Fix verified.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to