mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
new collection modal refactor
This commit is contained in:
@@ -38,9 +38,9 @@ export function setSelectedTab(tabid) {
|
||||
openedTabs.update(tabs => setSelectedTabFunc(tabs, tabid));
|
||||
}
|
||||
|
||||
export function getObjectTypeFieldLabel(objectTypeField) {
|
||||
export function getObjectTypeFieldLabel(objectTypeField, driver?) {
|
||||
if (objectTypeField == 'matviews') return 'Materialized Views';
|
||||
if (objectTypeField == 'collections') return 'Collections/Containers';
|
||||
if (objectTypeField == 'collections') return _.startCase(driver?.collectionPluralLabel) ?? 'Collections/Containers';
|
||||
return _.startCase(objectTypeField);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user