Mercurial > gemma
comparison client/src/lib/errors.js @ 1272:bc55ffaeb639
cleaned up client/src directory
better organization of files and directories, better naming, separation of admin and map context
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 22 Nov 2018 07:07:12 +0100 |
parents | |
children | ea3a89a1813a |
comparison
equal
deleted
inserted
replaced
1268:aca692e73028 | 1272:bc55ffaeb639 |
---|---|
1 /* | |
2 * This is Free Software under GNU Affero General Public License v >= 3.0 | |
3 * without warranty, see README.md and license for details. | |
4 * | |
5 * SPDX-License-Identifier: AGPL-3.0-or-later | |
6 * License-Filename: LICENSES/AGPL-3.0.txt | |
7 * | |
8 * Copyright (C) 2018 by via donau | |
9 * – Österreichische Wasserstraßen-Gesellschaft mbH | |
10 * Software engineering by Intevation GmbH | |
11 * | |
12 * Author(s): | |
13 * Thomas Junk <thomas.junk@intevation.de> | |
14 */ | |
15 | |
16 /** facade to wrap calls to vue2-toastr */ | |
17 import app from "../main"; | |
18 | |
19 const displayError = ({ title, message }) => { | |
20 app.$toast.error({ | |
21 title: title, | |
22 message: message | |
23 }); | |
24 }; | |
25 | |
26 const displayInfo = ({ title, message }) => { | |
27 app.$toast.info({ | |
28 title: title, | |
29 message: message | |
30 }); | |
31 }; | |
32 | |
33 export { displayError, displayInfo }; |