fix msgbox cancel

This commit is contained in:
csf 2022-06-13 15:38:30 +08:00
parent cbcf4d0c68
commit 26c2bcd5be

View File

@ -91,8 +91,8 @@ class MsgboxComponent: Reactor.Component {
var color = this.getColor();
var icon = this.getIcon(color);
var content = this.getContent();
var hasCancel = this.type.indexOf("error") < 0 && this.type != "success" && this.type.indexOf("nocancel") < 0;
var hasOk = this.type != "connecting" && this.type.indexOf("nook") < 0;
var hasCancel = this.type.indexOf("error") < 0 && this.type.indexOf("nocancel") < 0;
var hasOk = this.type != "connecting" && this.type != "success" && this.type.indexOf("nook") < 0;
var hasClose = this.type.indexOf("hasclose") >= 0;
var show_progress = this.type == "connecting";
var me = this;