Fix issue where the only KeyValue field in the tab would display its deleteButton
This commit is contained in:
parent
e7537e339d
commit
c3c80d643e
4 changed files with 11 additions and 4 deletions
|
@ -147,7 +147,7 @@ public class DashboardController implements Initializable {
|
|||
httpMethodBox.getSelectionModel().select("GET");
|
||||
|
||||
paramsControllers = new ArrayList<>();
|
||||
paramsCountProperty = new SimpleIntegerProperty(paramsControllers.size());
|
||||
paramsCountProperty = new SimpleIntegerProperty(0);
|
||||
|
||||
appendedParams = new ArrayList<>();
|
||||
addParamField(); // Adds a blank param field
|
||||
|
@ -811,6 +811,7 @@ public class DashboardController implements Initializable {
|
|||
paramsControllers.clear();
|
||||
|
||||
paramsBox.getChildren().clear();
|
||||
paramsCountProperty.set(0);
|
||||
addParamField();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,10 +51,10 @@ public class FormDataTabController implements Initializable {
|
|||
@Override
|
||||
public void initialize(URL location, ResourceBundle resources) {
|
||||
stringControllers = new ArrayList<>();
|
||||
stringControllersCount = new SimpleIntegerProperty(stringControllers.size());
|
||||
stringControllersCount = new SimpleIntegerProperty(0);
|
||||
|
||||
fileControllers = new ArrayList<>();
|
||||
fileControllersCount = new SimpleIntegerProperty(fileControllers.size());
|
||||
fileControllersCount = new SimpleIntegerProperty(0);
|
||||
|
||||
addFileField();
|
||||
addStringField();
|
||||
|
@ -236,6 +236,10 @@ public class FormDataTabController implements Initializable {
|
|||
fileControllers.clear();
|
||||
|
||||
fieldsBox.getChildren().clear();
|
||||
|
||||
stringControllersCount.set(0);
|
||||
fileControllersCount.set(0);
|
||||
|
||||
addStringField();
|
||||
addFileField();
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ public class HeaderTabController implements Initializable {
|
|||
@Override
|
||||
public void initialize(URL location, ResourceBundle resources) {
|
||||
controllers = new ArrayList<>();
|
||||
controllersCount = new SimpleIntegerProperty(controllers.size());
|
||||
controllersCount = new SimpleIntegerProperty(0);
|
||||
addHeader();
|
||||
}
|
||||
|
||||
|
@ -141,6 +141,7 @@ public class HeaderTabController implements Initializable {
|
|||
controllers.clear();
|
||||
|
||||
headersBox.getChildren().clear();
|
||||
controllersCount.set(0);
|
||||
addHeader();
|
||||
}
|
||||
}
|
|
@ -142,6 +142,7 @@ public class URLTabController implements Initializable {
|
|||
controllers.clear();
|
||||
|
||||
fieldsBox.getChildren().clear();
|
||||
controllersCount.set(0);
|
||||
addField();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue