显示系统信息页面禁用上一步按钮
This commit is contained in:
parent
08327ce2b3
commit
919fdefc9c
|
@ -471,9 +471,9 @@ class deployWindow {
|
||||||
console.log("renderer send kylinide.installWizard.init.configSelect");
|
console.log("renderer send kylinide.installWizard.init.configSelect");
|
||||||
let result = await ipcRenderer.invoke('kylinide.installWizard.init.configSelect', data);
|
let result = await ipcRenderer.invoke('kylinide.installWizard.init.configSelect', data);
|
||||||
if (result === void 0) {
|
if (result === void 0) {
|
||||||
this.prevBtn!.disabled = false;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.prevBtn!.disabled = true;
|
||||||
const parentdiv = document.getElementById('osInfo') as HTMLDivElement;
|
const parentdiv = document.getElementById('osInfo') as HTMLDivElement;
|
||||||
const parentdivshow = document.getElementById('osInfoShow') as HTMLDivElement;
|
const parentdivshow = document.getElementById('osInfoShow') as HTMLDivElement;
|
||||||
parentdiv.innerHTML = "";
|
parentdiv.innerHTML = "";
|
||||||
|
@ -649,14 +649,10 @@ class deployWindow {
|
||||||
preTab.style.display = 'none';
|
preTab.style.display = 'none';
|
||||||
this.onlineInstallTabArrayIndex = this.onlineInstallTabArrayIndex + n;
|
this.onlineInstallTabArrayIndex = this.onlineInstallTabArrayIndex + n;
|
||||||
this.showTabFromIndex(this.onlineInstallTabArray, this.onlineInstallTabArrayIndex);
|
this.showTabFromIndex(this.onlineInstallTabArray, this.onlineInstallTabArrayIndex);
|
||||||
|
if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] !== "onlineInstallTab2")
|
||||||
this.prevBtn!.disabled = false;
|
this.prevBtn!.disabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (onlineInstallTabArray[onlineInstallTabArrayIndex] === "onlineInstallTab3") {
|
|
||||||
// this.nextBtn!.disabled = true;
|
|
||||||
// this.nextBtn!.innerHTML = setLanguage('okStep');
|
|
||||||
|
|
||||||
// }
|
|
||||||
if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] === "onlineInstallTab4") {
|
if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] === "onlineInstallTab4") {
|
||||||
console.log("onlineInstallTab4 last");
|
console.log("onlineInstallTab4 last");
|
||||||
this.prevBtn!.disabled = true;
|
this.prevBtn!.disabled = true;
|
||||||
|
@ -852,6 +848,8 @@ class deployWindow {
|
||||||
if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] === 'onlineInstallTab2') {
|
if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] === 'onlineInstallTab2') {
|
||||||
this.nextBtn!.disabled = false;
|
this.nextBtn!.disabled = false;
|
||||||
}
|
}
|
||||||
|
if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] !== "onlineInstallTab1")
|
||||||
|
this.prevBtn!.disabled = true;
|
||||||
this.showTabFromIndex(this.onlineInstallTabArray, this.onlineInstallTabArrayIndex);
|
this.showTabFromIndex(this.onlineInstallTabArray, this.onlineInstallTabArrayIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue