From 11891016e44e98c08a5fcf3639a81bf6b4c9d46d Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Tue, 5 Nov 2019 10:42:29 +0100 Subject: [PATCH] add subtitle in config file and show it in header next to instance name --- src/common/header.js | 3 ++- src/config.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/header.js b/src/common/header.js index 7d72e0c..e8c70c2 100644 --- a/src/common/header.js +++ b/src/common/header.js @@ -23,13 +23,14 @@ import React from 'react'; import { Col, Button } from 'react-bootstrap'; import { Hidden } from 'react-grid-system' import Icon from './icon'; +import config from '../config'; class Header extends React.Component { render() { return (
-

VILLASweb

+

{config.instance} - {config.subtitle}

diff --git a/src/config.js b/src/config.js index 82be462..6b68fa3 100644 --- a/src/config.js +++ b/src/config.js @@ -2,10 +2,11 @@ const config = { publicPathBase: 'public/', instance: 'VILLASweb', + subtitle: 'ACS', admin: { - name: 'Institute for Automation of Complex Power Systems, RWTH Aachen University, Germany', + name: 'Institute for Automation of Complex Power Systems (ACS), RWTH Aachen University, Germany', mail: 'stvogel@eonerc.rwth-aachen.de' } -} +}; export default config