fix: code review
This commit is contained in:
parent
3d72e18fb9
commit
9aedc5cd1c
|
@ -20,10 +20,10 @@ ModalPopup {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
root.title = request.securityOrigin;
|
root.title = request.securityOrigin;
|
||||||
message.text = request.message;
|
message.text = request.message;
|
||||||
if(request.type == JavaScriptDialogRequest.DialogTypeAlert){
|
if(request.type === JavaScriptDialogRequest.DialogTypeAlert){
|
||||||
cancelButton.visible = false;
|
cancelButton.visible = false;
|
||||||
}
|
}
|
||||||
if(request.type == JavaScriptDialogRequest.DialogTypePrompt){
|
if(request.type === JavaScriptDialogRequest.DialogTypePrompt){
|
||||||
prompt.text = request.defaultText;
|
prompt.text = request.defaultText;
|
||||||
prompt.visible = true;
|
prompt.visible = true;
|
||||||
svMessage.height = 75;
|
svMessage.height = 75;
|
||||||
|
@ -59,7 +59,6 @@ ModalPopup {
|
||||||
StyledButton {
|
StyledButton {
|
||||||
id: okButton
|
id: okButton
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Style.current.smallPadding
|
|
||||||
label: qsTr("Ok")
|
label: qsTr("Ok")
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
Loading…
Reference in New Issue