- fixed an issue reading bug

- forced projects reload after clicking the 'test connection' button
pull/11/head
Roman Pedchenko 6 years ago
parent 9bf3d8236f
commit a3ef8bb4ab
No known key found for this signature in database
GPG Key ID: C4C5918838CFD10A

@ -98,6 +98,8 @@ public class GiteaRepositoryEditor extends BaseRepositoryEditor<GiteaRepository>
@NotNull
@Override
protected List<GiteaProject> fetch(@NotNull ProgressIndicator indicator) throws Exception {
myRepository.setSelectedProject(null);
myRepository.setProjects(null);
return myRepository.getProjectList();
}
}

@ -111,8 +111,8 @@ public class GiteaTask {
}
private void fromJson(JsonObject current) {
if (current.has(TaskFields.ID)) {
this.setId(getString(current, TaskFields.ID, ""));
if (current.has(TaskFields.NUMBER)) {
this.setId(getString(current, TaskFields.NUMBER, ""));
}
if (current.has(TaskFields.TITLE)) {
this.setTitle(getString(current, TaskFields.TITLE, ""));

@ -29,7 +29,7 @@ public class Consts {
}
public interface TaskFields {
String ID = "id";
String NUMBER = "number";
String TITLE = "title";
String DESCRIPTION = "body";
String CREATEDAT = "created_at";

Loading…
Cancel
Save