Changeset 13392 in josm


Ignore:
Timestamp:
2018-02-08T01:38:37+01:00 (3 months ago)
Author:
Don-vip
Message:

fix #15888 - Add changeset link to upload confirmation notification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java

    r12687 r13392  
    3030import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    3131import org.openstreetmap.josm.gui.util.GuiHelper;
     32import org.openstreetmap.josm.gui.widgets.HtmlPanel;
    3233import org.openstreetmap.josm.io.ChangesetClosedException;
    3334import org.openstreetmap.josm.io.MaxChangesetSizeExceededPolicy;
     
    330331            if (uploadCanceled) return;
    331332            if (lastException == null) {
    332                 new Notification(
    333                         "<h3>" + tr("Upload successful!") + "</h3>")
     333                HtmlPanel panel = new HtmlPanel(
     334                        "<h3><a href=\"" + Main.getBaseBrowseUrl() + "/changeset/" + changeset.getId() + "\">"
     335                                + tr("Upload successful!") + "</a></h3>");
     336                panel.enableClickableHyperlinks();
     337                panel.setOpaque(false);
     338                new Notification()
     339                        .setContent(panel)
    334340                        .setIcon(ImageProvider.get("misc", "check_large"))
    335341                        .show();
Note: See TracChangeset for help on using the changeset viewer.