mirror of
https://github.com/e1fueg0/intellij-gitea-plugin.git
synced 2024-10-27 20:34:04 +00:00
- fixed an issue reading bug
- forced projects reload after clicking the 'test connection' button
This commit is contained in:
parent
9bf3d8236f
commit
a3ef8bb4ab
@ -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…
Reference in New Issue
Block a user