- fixed an issue reading bug

- forced projects reload after clicking the 'test connection' button
This commit is contained in:
Roman Pedchenko 2018-07-22 17:59:29 +03:00
parent 9bf3d8236f
commit a3ef8bb4ab
No known key found for this signature in database
GPG Key ID: C4C5918838CFD10A
3 changed files with 5 additions and 3 deletions

View File

@ -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();
}
}

View File

@ -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, ""));

View File

@ -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";