adds graphical visualization for issue type and status

Sun, 21 Jun 2020 12:31:38 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 21 Jun 2020 12:31:38 +0200
changeset 93
a44d59bbf447
parent 92
b723b31383ac
child 94
edba952cfc57

adds graphical visualization for issue type and status

src/main/java/de/uapcore/lightpit/viewmodel/IssueEditView.java file | annotate | diff | comparison | revisions
--- a/src/main/java/de/uapcore/lightpit/viewmodel/IssueEditView.java	Sun Jun 21 12:24:29 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/viewmodel/IssueEditView.java	Sun Jun 21 12:31:38 2020 +0200
@@ -41,6 +41,9 @@
     public void setVersions(List<Version> versions) {
         versionsRecent.clear();
         versionsUpcoming.clear();
+        // keep the current selection, if any
+        versionsRecent.addAll(issue.getAffectedVersions());
+        versionsUpcoming.addAll(issue.getResolvedVersions());
         for (var v : versions) {
             if (v.getStatus().isReleased()) {
                 versionsRecent.add(v);

mercurial