activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuconic <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #1501: ARTEMIS-1270 Enforce Theming
Date Fri, 01 Sep 2017 14:19:39 GMT
Github user clebertsuconic commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1501#discussion_r136585584
  
    --- Diff: artemis-hawtio/activemq-branding/src/main/webapp/plugin/js/plugin.js ---
    @@ -59,10 +59,14 @@ var activemqBranding = (function (self) {
     
         self.module = angular.module(self.pluginName, ['hawtioCore']);
         self.module.run(function (branding) {
    -        self.log.debug("ActivMQ theme loaded");
    +        self.log.info("ActiveMQ theme loaded");
    +        if (localStorage['theme'] != 'activemq' || localStorage['branding'] != 'activemq')
{
    +            localStorage['theme'] = 'activemq';
    +            localStorage['branding'] = 'activemq';
    +            location.reload();
    --- End diff --
    
    why you need ifs at all? why not always do
    
    localStorage['theme'] = 'activemq';
    location.reload();


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message