Browse Source

ui/ux changes

cl-refactor
yann300 10 years ago
parent
commit
945c2866e3
  1. 7
      mix/qml/DeploymentDialog.qml
  2. 2
      mix/qml/ProjectModel.qml
  3. 7
      mix/qml/js/ProjectModel.js

7
mix/qml/DeploymentDialog.qml

@ -66,9 +66,12 @@ Window {
anchors.bottomMargin: 10
Button {
text: qsTr("Deploy");
enabled: Object.keys(projectModel.deploymentAddresses).length === 0
enabled: applicationUrlHttp.text !== ""
onClicked: {
ProjectModelCode.startDeployProject();
if (Object.keys(projectModel.deploymentAddresses).length > 0)
deployWarningDialog.open();
else
ProjectModelCode.startDeployProject();
}
}

2
mix/qml/ProjectModel.qml

@ -96,7 +96,7 @@ Item {
standardButtons: StandardButton.Ok | StandardButton.Cancel
icon: StandardIcon.Question
onAccepted: {
ProjectModelCode.deployProject(true);
ProjectModelCode.startDeployProject();
}
}

7
mix/qml/js/ProjectModel.js

@ -281,14 +281,7 @@ function generateFileName(name, extension) {
var jsonRpcRequestId = 1;
function deployProject(force) {
saveAll(); //TODO: ask user
/*if (!force && deploymentAddresses !== []) {
deployWarningDialog.visible = true;
return;
}*/
deploymentDialog.open();
}

Loading…
Cancel
Save