Browse Source

[ui-editor] changes the Active database label to database (#3980)

Ram Prasad Agarwal 9 months ago
parent
commit
d60b253edb

+ 2 - 2
desktop/core/src/desktop/js/ko/components/ko.contextSelector.js

@@ -80,10 +80,10 @@ const TEMPLATE = `
 
 
     <!-- ko if: availableDatabases().length > 0 && !hideDatabases-->
     <!-- ko if: availableDatabases().length > 0 && !hideDatabases-->
     <!-- ko if: window.getLastKnownConfig().has_computes && !hideLabels --><span class="editor-header-title">${I18n(
     <!-- ko if: window.getLastKnownConfig().has_computes && !hideLabels --><span class="editor-header-title">${I18n(
-      'Active database'
+      'Database'
     )}</span><!-- /ko -->
     )}</span><!-- /ko -->
     <div data-bind="component: { name: 'hue-drop-down', params: { dataTestId: 'editor--database-selection--dropdown', titleName: 'Database', value: database, entries: availableDatabases, foreachVisible: true, searchable: true, linkTitle: '${I18n(
     <div data-bind="component: { name: 'hue-drop-down', params: { dataTestId: 'editor--database-selection--dropdown', titleName: 'Database', value: database, entries: availableDatabases, foreachVisible: true, searchable: true, linkTitle: '${I18n(
-      'Active database'
+      'Database'
     )}' } }" style="display: inline-block"></div>
     )}' } }" style="display: inline-block"></div>
     <!-- /ko -->
     <!-- /ko -->
     <!-- ko if: availableDatabases().length === 0  && !hideDatabases -->
     <!-- ko if: availableDatabases().length === 0  && !hideDatabases -->

+ 1 - 2
desktop/core/src/desktop/static/desktop/locales/en/translation.json

@@ -5,7 +5,6 @@
   "8 hours": "8 hours",
   "8 hours": "8 hours",
   "Active cluster": "Active cluster",
   "Active cluster": "Active cluster",
   "Active compute": "Active compute",
   "Active compute": "Active compute",
-  "Active database": "Active database",
   "Active namespace": "Active namespace",
   "Active namespace": "Active namespace",
   "Add": "Add",
   "Add": "Add",
   "Add a description...": "Add a description...",
   "Add a description...": "Add a description...",
@@ -554,4 +553,4 @@
   "You don't have any saved queries.": "You don't have any saved queries.",
   "You don't have any saved queries.": "You don't have any saved queries.",
   "Your download is being prepared": "Your download is being prepared",
   "Your download is being prepared": "Your download is being prepared",
   "Your downloaded results have been truncated": "Your downloaded results have been truncated"
   "Your downloaded results have been truncated": "Your downloaded results have been truncated"
-}
+}

+ 0 - 1
desktop/core/src/desktop/templates/global_js_constants.mako

@@ -267,7 +267,6 @@
     'A new top bar!': '${ _('A new top bar!') }',
     'A new top bar!': '${ _('A new top bar!') }',
     'Active cluster': '${ _('Active cluster') }',
     'Active cluster': '${ _('Active cluster') }',
     'Active compute': '${ _('Active compute') }',
     'Active compute': '${ _('Active compute') }',
-    'Active database': '${ _('Active database') }',
     'Active namespace': '${ _('Active namespace') }',
     'Active namespace': '${ _('Active namespace') }',
     'Add a description...': '${ _('Add a description...') }',
     'Add a description...': '${ _('Add a description...') }',
     'Add filter': '${ _('Add filter') }',
     'Add filter': '${ _('Add filter') }',