diff --git a/app.json b/app.json new file mode 100644 index 00000000..a27dc6fe --- /dev/null +++ b/app.json @@ -0,0 +1,26 @@ +{ + "name": "Umami", + "description": "Umami is a simple, fast, website analytics alternative to Google Analytics.", + "keywords": [ + "analytics", + "charts", + "statistics", + "web-analytics" + ], + "website": "https://umami.is", + "repository": "https://github.com/mikecao/umami", + "addons": [ + "heroku-postgresql" + ], + "env": { + "HASH_SALT": { + "description": "Used to generate unique values for your installation", + "required": true, + "generator": "secret" + } + }, + "scripts": { + "postdeploy": "psql $DATABASE_URL -f sql/schema.postgresql.sql" + }, + "success_url": "/" +} diff --git a/components/common/MenuButton.js b/components/common/MenuButton.js index 40df2e0c..eb8d62fe 100644 --- a/components/common/MenuButton.js +++ b/components/common/MenuButton.js @@ -16,6 +16,7 @@ function MenuButton({ menuAlign = 'right', onSelect, renderValue, + hideLabel, }) { const [showMenu, setShowMenu] = useState(false); const ref = useRef(); @@ -44,7 +45,9 @@ function MenuButton({ onClick={toggleMenu} variant="light" > -
{renderValue ? renderValue(selectedOption) : value}
+ {!hideLabel && ( +
{renderValue ? renderValue(selectedOption) : value}
+ )} {showMenu && ( +