|
|
|
@ -29,6 +29,7 @@ export class TestStatus extends BI.Widget {
|
|
|
|
|
failDriverMessage: Label; |
|
|
|
|
driverLink: FloatLeftLayout; |
|
|
|
|
detail: VerticalLayout; |
|
|
|
|
failMaskers:any; |
|
|
|
|
|
|
|
|
|
watch = { |
|
|
|
|
status: (status: string) => { |
|
|
|
@ -38,7 +39,7 @@ export class TestStatus extends BI.Widget {
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
|
const { loadingCls, loadingText, successCls, successText, failCls, failText, retryText } = this.options; |
|
|
|
|
|
|
|
|
|
var self=this; |
|
|
|
|
return { |
|
|
|
|
type: BI.CenterAdaptLayout.xtype, |
|
|
|
|
cls: 'bi-z-index-mask', |
|
|
|
@ -51,7 +52,7 @@ export class TestStatus extends BI.Widget {
|
|
|
|
|
cls: 'bi-card', |
|
|
|
|
width: 450, |
|
|
|
|
height: 250, |
|
|
|
|
single: true, |
|
|
|
|
// single: true,
|
|
|
|
|
showIndex: this.model.status, |
|
|
|
|
ref: (_ref: Tab) => { |
|
|
|
|
this.tab = _ref; |
|
|
|
@ -70,6 +71,12 @@ export class TestStatus extends BI.Widget {
|
|
|
|
|
tipCls: failCls, |
|
|
|
|
tipText: failText, |
|
|
|
|
retryText, |
|
|
|
|
ref:(_ref:any)=>{ |
|
|
|
|
self.failMaskers=_ref; |
|
|
|
|
if(this.failMessage.getText()===''){ |
|
|
|
|
this.failMaskers.populateFail(BI.i18nText("Dec-Connect-Failed"),false); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
listeners: [ |
|
|
|
|
{ |
|
|
|
|
eventName: TipFail.EVENT_RELOAD, |
|
|
|
@ -168,7 +175,7 @@ export class TestStatus extends BI.Widget {
|
|
|
|
|
this.store.setStatus(TEST_STATUS.SUCCESS); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
setFail(message: string, driver = '', link = '') { |
|
|
|
|
setFail(message: string='', driver = '', link = '') { |
|
|
|
|
this.store.setStatus(TEST_STATUS.FAIL); |
|
|
|
|
this.failMessage.setText(message); |
|
|
|
|
this.failDriverMessage.setVisible(!!driver); |
|
|
|
|