Explorar el Código

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

Romain hace 6 años
padre
commit
cd913670e2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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({
               displayName: I18n('Add more...'),
               dividerAbove: true,