|
|
@ -142,6 +142,9 @@ export class TestStatus extends BI.Widget { |
|
|
|
type: TextButton, |
|
|
|
type: TextButton, |
|
|
|
cls: 'bi-high-light bi-high-light-border-bottom', |
|
|
|
cls: 'bi-high-light bi-high-light-border-bottom', |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Download_Driver'), |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Download_Driver'), |
|
|
|
|
|
|
|
handler: () => { |
|
|
|
|
|
|
|
window.open(this.model.link); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
ref: (_ref: any) => { |
|
|
|
ref: (_ref: any) => { |
|
|
@ -168,8 +171,8 @@ export class TestStatus extends BI.Widget { |
|
|
|
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.isVisible(!!driver); |
|
|
|
this.failDriverMessage.setVisible(!!driver); |
|
|
|
this.driverLink.isVisible(!!driver); |
|
|
|
this.driverLink.setVisible(!!driver); |
|
|
|
if (driver) { |
|
|
|
if (driver) { |
|
|
|
this.failDriverMessage.setText(BI.i18nText('Dec-Dcm_Connection_Lack_Driver', driver)); |
|
|
|
this.failDriverMessage.setText(BI.i18nText('Dec-Dcm_Connection_Lack_Driver', driver)); |
|
|
|
this.store.setLink(link); |
|
|
|
this.store.setLink(link); |
|
|
|