Explorar o código

HUE-3771 [home] Hide the assist panel temporarily for 3.10

Johan Ahlen %!s(int64=9) %!d(string=hai) anos
pai
achega
f19a358

+ 3 - 2
desktop/core/src/desktop/static/desktop/js/home2.vm.js

@@ -41,8 +41,9 @@
     self.user = options.user;
     self.superuser = options.superuser;
     self.apiHelper = ApiHelper.getInstance(options);
-    self.isLeftPanelVisible = ko.observable();
-    self.apiHelper.withTotalStorage('assist', 'assist_panel_visible', self.isLeftPanelVisible, true);
+    self.isLeftPanelVisible = ko.observable(false);
+    // Uncomment to enable the assist panel
+    // self.apiHelper.withTotalStorage('assist', 'assist_panel_visible', self.isLeftPanelVisible, true);
 
     self.activeEntry = ko.observable();
     self.trashEntry = ko.observable();

+ 1 - 1
desktop/core/src/desktop/templates/file_browser.mako

@@ -170,7 +170,7 @@ from desktop.views import _ko
     }
 
     .fb-primary-col {
-      flex: 1;
+      flex: 2;
       vertical-align: middle;
       padding-left: 8px;
       white-space: nowrap;

+ 4 - 3
desktop/core/src/desktop/templates/home2.mako

@@ -153,9 +153,10 @@ ${ fileBrowser.fileBrowser() }
 </div>
 
 <div id="documentList" class="main-content">
-  <a title="${_('Toggle Assist')}" class="pointer show-assist" data-bind="visible: !$root.isLeftPanelVisible(), click: function() { $root.isLeftPanelVisible(true); }" style="display:none;">
-    <i class="fa fa-chevron-right"></i>
-  </a>
+##   Uncoment to enable the assist panel
+##   <a title="${_('Toggle Assist')}" class="pointer show-assist" data-bind="visible: !$root.isLeftPanelVisible(), click: function() { $root.isLeftPanelVisible(true); }" style="display:none;">
+##     <i class="fa fa-chevron-right"></i>
+##   </a>
 
   <div class="vertical-full container-fluid" data-bind="style: { 'padding-left' : $root.isLeftPanelVisible() ? '0' : '20px' }">
     <div class="vertical-full row-fluid panel-container">