Browse Source

HUE-8912 [editor] Hide Add More link in Editor top button action when there is only one interpreter

Romain 6 years ago
parent
commit
cd913670e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/js/topNavViewModel.js

+ 1 - 1
desktop/core/src/desktop/js/topNavViewModel.js

@@ -99,7 +99,7 @@ class TopNavViewModel {
             }
             }
           });
           });
 
 
-          if (window.SHOW_ADD_MORE_EDITORS && app.name === 'editor') {
+          if (window.SHOW_ADD_MORE_EDITORS && app.name === 'editor' && interpreters.length > 1) {
             interpreters.push({
             interpreters.push({
               displayName: I18n('Add more...'),
               displayName: I18n('Add more...'),
               dividerAbove: true,
               dividerAbove: true,