Mercurial > gemma
view client/src/lib/errors.js @ 1443:6b100f639178
removed blue borders from fairwayprofile and infobar
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 30 Nov 2018 13:20:26 +0100 |
parents | d1d8c7bd16a1 |
children | 2365acde39dc |
line wrap: on
line source
/* This is Free Software under GNU Affero General Public License v >= 3.0 * without warranty, see README.md and license for details. * * SPDX-License-Identifier: AGPL-3.0-or-later * License-Filename: LICENSES/AGPL-3.0.txt * * Copyright (C) 2018 by via donau * – Österreichische Wasserstraßen-Gesellschaft mbH * Software engineering by Intevation GmbH * * Author(s): * Thomas Junk <thomas.junk@intevation.de> */ import app from "../main"; const displayOptions = { timeout: 2000, showProgressBar: false, closeOnClick: false, pauseOnHover: true, oneAtTime: true, bodyMaxLength: 250 }; const displayError = ({ title, message }) => { app.$snotify.error(message, title, displayOptions); }; const displayInfo = ({ title, message }) => { app.$snotify.info(message, title, displayOptions); }; export { displayError, displayInfo };