|
|
|
@ -24,6 +24,10 @@ export class ConnectionPool extends BI.Widget {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
|
if (BI.size(this.model.connectionJDBC) === 0) { |
|
|
|
|
return this.renderNoConnection(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: Htape, |
|
|
|
|
items: [ |
|
|
|
@ -53,8 +57,7 @@ export class ConnectionPool extends BI.Widget {
|
|
|
|
|
}, |
|
|
|
|
width: 275, |
|
|
|
|
}, |
|
|
|
|
this.model.connectionJDBC.length > 0 ? |
|
|
|
|
this.renderPool() : this.renderNoConnection(), |
|
|
|
|
this.renderPool(), |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
@ -101,7 +104,7 @@ export class ConnectionPool extends BI.Widget {
|
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'bi-tips', |
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Plase_Add_One'), |
|
|
|
|
text: BI.i18nText('Dec-Dec_Connection_NO_Connection_Pool'), |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|