view client/src/lib/errors.js @ 514:4a1db55a9920

Use auth.RunAs in JSON controller. It's more symmetric to the rest of the application and returns the database connection earlier to the pool.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 27 Aug 2018 10:35:55 +0200
parents 27502291e564
children
line wrap: on
line source

/** facade to wrap calls to vue2-toastr */
import app from "../main";

const displayError = ({ title, message }) => {
  app.$toast.error({
    title: title,
    message: message
  });
};

export { displayError };