summaryrefslogtreecommitdiffstats
path: root/test/unit/token_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-17 09:13:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-17 09:13:10 +0000
commit7642378bf425d828db6747dd49ec48a9cc15e129 (patch)
treeff8d5849e45e751b8812dc150c21e565a3f7380b /test/unit/token_test.rb
parent1ccdf38fdde16421905f8419bb83f0e923bd16bc (diff)
downloadredmine-7642378bf425d828db6747dd49ec48a9cc15e129.tar.gz
redmine-7642378bf425d828db6747dd49ec48a9cc15e129.zip
Not testing nested set.
git-svn-id: http://svn.redmine.org/redmine/trunk@14682 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/token_test.rb')
0 files changed, 0 insertions, 0 deletions
ts/DefaultHelmetContainer.js?h=9.9.8.100196&id=f56a05f14fe4b0685bce7a8750c929641ebf0b78'>plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * SonarQube
 * Copyright (C) 2009-2017 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { getSettingValue } from '../../store/rootReducer';

function DefaultHelmetContainer({ children, sonarqubeDotCom }) {
  return (
    <div>
      <Helmet
        defaultTitle={
          sonarqubeDotCom && sonarqubeDotCom.value === 'true' ? 'SonarCloud' : 'SonarQube'
        }
      />
      {children}
    </div>
  );
}

const mapStateToProps = state => ({
  sonarqubeDotCom: getSettingValue(state, 'sonar.lf.sonarqube.com.enabled')
});

export default connect(mapStateToProps)(DefaultHelmetContainer);