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