Changeset 5c670fc


Ignore:
Timestamp:
Jul 7, 2017 9:24:23 PM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
4e8ed90
Parents:
e83d31f
Message:

Show advanced sidebar links by default in advanced mode (ticket #1996)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigSummaryHandler.java

    re83d31f r5c670fc  
    3737            }
    3838        } else if (_action.equals(_t("Restore full default"))) {
    39             _context.router().saveConfig(SummaryHelper.PROP_SUMMARYBAR + "default", SummaryHelper.DEFAULT_FULL);
     39            _context.router().saveConfig(SummaryHelper.PROP_SUMMARYBAR + "default", isAdvanced() ? SummaryHelper.DEFAULT_FULL_ADVANCED : SummaryHelper.DEFAULT_FULL);
    4040            addFormNotice(_t("Full summary bar default restored.") + " " +
    4141                          _t("Summary bar will refresh shortly."));
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java

    re83d31f r5c670fc  
    5252        "I2PServices" + S +
    5353        "I2PInternals" + S +
     54        "Peers" + S +
     55        "Tunnels" + S +
     56        "TunnelStatus" + S +
     57        "Congestion" + S +
     58        "RestartStatus" + S +
     59        "Destinations" + S +
     60        "";
     61
     62    static final String DEFAULT_FULL_ADVANCED =
     63        "HelpAndFAQ" + S +
     64        "ShortGeneral" + S +
     65        "Bandwidth" + S +
     66        "UpdateStatus" + S +
     67        "FirewallAndReseedStatus" + S +
     68        "NetworkReachability" + S +
     69        "I2PServices" + S +
     70        "I2PInternals" + S +
     71        "Advanced" + S +
    5472        "Peers" + S +
    5573        "Tunnels" + S +
     
    917935            config = _context.getProperty(PROP_SUMMARYBAR + page);
    918936            if (config == null)
    919                 config = _context.getProperty(PROP_SUMMARYBAR + "default", DEFAULT_FULL);
     937                config = _context.getProperty(PROP_SUMMARYBAR + "default", isAdvanced() ? DEFAULT_FULL_ADVANCED : DEFAULT_FULL);
    920938        }
    921939        return Arrays.asList(DataHelper.split(config, SS));
  • history.txt

    re83d31f r5c670fc  
    33   - /configlogging: Fix log file size config bug (ticket #1996)
    44   - /logs: Correctly format unavailable crypto warnings (ticket #1996)
     5   - Show advanced sidebar links by default in advanced mode (ticket #1996)
    56
    672017-07-02 str4d
Note: See TracChangeset for help on using the changeset viewer.