diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-09-20 11:44:42 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-09-21 20:20:55 +0200 |
commit | d5fbab940ffbdc45df0c5a078a340caaf9fea956 (patch) | |
tree | 81006b1bdd9eb9dd301a55caa220c2710e327cc1 /server/sonar-web/src/main/js/apps/about/actions.ts | |
parent | fbf80ad4a51f1c3c267c0267345a14881bfc614f (diff) | |
download | sonarqube-d5fbab940ffbdc45df0c5a078a340caaf9fea956.tar.gz sonarqube-d5fbab940ffbdc45df0c5a078a340caaf9fea956.zip |
rewrite about app in ts
Diffstat (limited to 'server/sonar-web/src/main/js/apps/about/actions.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/about/actions.ts | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/about/actions.ts b/server/sonar-web/src/main/js/apps/about/actions.ts new file mode 100644 index 00000000000..515d95128db --- /dev/null +++ b/server/sonar-web/src/main/js/apps/about/actions.ts @@ -0,0 +1,31 @@ +/* + * SonarQube + * Copyright (C) 2009-2018 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 { Dispatch } from 'redux'; +import { getValues } from '../../api/settings'; +import { receiveValues } from '../settings/store/values/actions'; +import { Store } from '../../store/rootReducer'; + +export const fetchAboutPageSettings = () => (dispatch: Dispatch<Store>) => { + const keys = ['sonar.lf.aboutText']; + + return getValues({ keys: keys.join() }).then(values => { + dispatch(receiveValues(values)); + }); +}; |