Эх сурвалжийг харах

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

Romain 6 жил өмнө
parent
commit
cd913670e2

+ 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,