|
|
|
@ -2,7 +2,7 @@ import { SearchEditor, Vtape, Right, Htape, Vertical, ButtonGroup, Left, Vertica
|
|
|
|
|
import { shortcut, store } from '@core/core'; |
|
|
|
|
import { FilterXtype } from './filter/filter'; |
|
|
|
|
import { DatebaseModel, DatebaseModelXtype } from './database.model'; |
|
|
|
|
import { DATEBASE_FILTER_TYPE } from '@constants/constant'; |
|
|
|
|
import { DATEBASE_FILTER_TYPE, OTHER_JDBC } from '@constants/constant'; |
|
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
|
import { DatebaseTypeXtype } from './database_type/database_type'; |
|
|
|
|
import { getAllDatabaseTypes } from '../../app.service'; |
|
|
|
@ -56,7 +56,7 @@ export class Datebase extends BI.Widget {
|
|
|
|
|
if (this.model.isPlugin) { |
|
|
|
|
datebaseTypes = [...datebaseTypes, ...this.allDatabaseTypes.filter(item => !item.internal)]; |
|
|
|
|
} |
|
|
|
|
this.store.setDatebaseTypes(datebaseTypes.filter(item => item.type !== connectionType.JNDI && item.type !== 'other')); |
|
|
|
|
this.store.setDatebaseTypes(datebaseTypes.filter(item => item.type !== connectionType.JNDI && item.type !== OTHER_JDBC)); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
@ -241,10 +241,10 @@ export class Datebase extends BI.Widget {
|
|
|
|
|
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.commonly)); |
|
|
|
|
break; |
|
|
|
|
case DATEBASE_FILTER_TYPE.OTHER: |
|
|
|
|
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type === connectionType.JNDI || item.type === 'other')); |
|
|
|
|
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type === connectionType.JNDI || item.type === OTHER_JDBC)); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type !== connectionType.JNDI && item.type !== 'other')); |
|
|
|
|
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.type !== connectionType.JNDI && item.type !== OTHER_JDBC)); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|