Explorar el Código

AMBARI-20158 - Host filter is missing for admin user after upgrading to ambari 2.4.2 or above (rzang)

Richard Zang hace 8 años
padre
commit
7ce52f7035

+ 0 - 1
ambari-web/app/config.js

@@ -81,7 +81,6 @@ App.supports = {
   showPageLoadTime: false,
   skipComponentStartAfterInstall: false,
   preInstallChecks: false,
-  hostComboSearchBox: true,
   serviceAutoStart: true,
   logSearch: true,
   redhatSatellite: false,

+ 1 - 1
ambari-web/app/controllers/experimental.js

@@ -35,7 +35,7 @@ App.ExperimentalController = Em.Controller.extend(App.UserPref, {
 
   getUserPrefSuccessCallback: function (response, request, data) {
     if (response) {
-      App.set('supports', response);
+      App.set('supports', $.merge(response, App.get('supports')));
     }
   },
 

+ 0 - 2
ambari-web/app/templates/main/host/combo_search_box.hbs

@@ -15,7 +15,6 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 }}
-{{#if App.supports.hostComboSearchBox}}
 <br/>
 {{#if view.errMsg}}
 <div class="alert alert-error">
@@ -23,4 +22,3 @@
 </div>
 {{/if}}
 <div id="combo_search_box"></div>
-{{/if}}